05:23:32.685 [Test worker] DEBUG i.n.u.i.l.InternalLoggerFactory - Using SLF4J as the default logging framework
05:23:32.719 [Test worker] DEBUG i.n.util.internal.PlatformDependent0 - java.nio.Buffer.address: available
05:23:32.732 [Test worker] DEBUG i.n.util.internal.PlatformDependent0 - sun.misc.Unsafe.theUnsafe: available
05:23:32.733 [Test worker] DEBUG i.n.util.internal.PlatformDependent0 - sun.misc.Unsafe.copyMemory: available
05:23:32.735 [Test worker] DEBUG i.n.util.internal.PlatformDependent0 - java.nio.Bits.unaligned: true
05:23:32.742 [Test worker] DEBUG i.n.util.internal.PlatformDependent - Java version: 8
05:23:32.742 [Test worker] DEBUG i.n.util.internal.PlatformDependent - -Dio.netty.noUnsafe: false
05:23:32.743 [Test worker] DEBUG i.n.util.internal.PlatformDependent - sun.misc.Unsafe: available
05:23:32.743 [Test worker] DEBUG i.n.util.internal.PlatformDependent - -Dio.netty.noJavassist: false
05:23:32.753 [Test worker] DEBUG i.n.util.internal.PlatformDependent - Javassist: unavailable
05:23:32.753 [Test worker] DEBUG i.n.util.internal.PlatformDependent - You don't have Javassist in your class path or you don't have enough permission to load dynamically generated classes. Please check the configuration for better performance.
05:23:32.753 [Test worker] DEBUG i.n.util.internal.PlatformDependent - -Dio.netty.tmpdir: /tmp (java.io.tmpdir)
05:23:32.753 [Test worker] DEBUG i.n.util.internal.PlatformDependent - -Dio.netty.bitMode: 64 (sun.arch.data.model)
05:23:32.757 [Test worker] DEBUG i.n.util.internal.PlatformDependent - -Dio.netty.noPreferDirect: false
05:23:34.300 [Test worker] DEBUG i.n.c.MultithreadEventLoopGroup - -Dio.netty.eventLoopThreads: 16
05:23:34.496 [Test worker] DEBUG io.netty.channel.nio.NioEventLoop - -Dio.netty.noKeySetOptimization: false
05:23:34.496 [Test worker] DEBUG io.netty.channel.nio.NioEventLoop - -Dio.netty.selectorAutoRebuildThreshold: 512
05:23:34.621 [Test worker] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.numHeapArenas: 16
05:23:34.621 [Test worker] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.numDirectArenas: 16
05:23:34.621 [Test worker] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.pageSize: 8192
05:23:34.622 [Test worker] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxOrder: 11
05:23:34.623 [Test worker] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.chunkSize: 16777216
05:23:34.623 [Test worker] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.tinyCacheSize: 512
05:23:34.623 [Test worker] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.smallCacheSize: 256
05:23:34.623 [Test worker] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.normalCacheSize: 64
05:23:34.623 [Test worker] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxCachedBufferCapacity: 32768
05:23:34.623 [Test worker] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.cacheTrimInterval: 8192
05:23:34.776 [MockServer thread for port: 35997] DEBUG i.n.util.internal.ThreadLocalRandom - -Dio.netty.initialSeedUniquifier: 0xd9c198305f2d3c0b (took 4 ms)
05:23:34.861 [MockServer thread for port: 35997] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.allocator.type: unpooled
05:23:34.861 [MockServer thread for port: 35997] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.threadLocalDirectBufferSize: 65536
05:23:34.861 [MockServer thread for port: 35997] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.maxThreadLocalCharBufferSize: 16384
05:23:34.869 [MockServer thread for port: 35997] DEBUG io.netty.util.NetUtil - Loopback interface: lo (lo, 0:0:0:0:0:0:0:1%lo)
05:23:34.870 [MockServer thread for port: 35997] DEBUG io.netty.util.NetUtil - /proc/sys/net/core/somaxconn: 128
05:23:34.952 [MockServer thread for port: 35997] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 35997
05:23:35.891 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:35.922 [Test worker] DEBUG o.m.c.ConfigurationProperties - Property file not found on classpath using path [mockserver.properties]
05:23:35.922 [Test worker] DEBUG o.m.c.ConfigurationProperties - Property file not found using path [mockserver.properties]
05:23:36.125 [nioEventLoopGroup-4-1] DEBUG io.netty.buffer.AbstractByteBuf - -Dio.netty.buffer.bytebuf.checkAccessible: true
05:23:36.137 [nioEventLoopGroup-4-1] DEBUG io.netty.util.ResourceLeakDetector - -Dio.netty.leakDetection.level: simple
05:23:36.137 [nioEventLoopGroup-4-1] DEBUG io.netty.util.ResourceLeakDetector - -Dio.netty.leakDetection.maxRecords: 4
05:23:36.251 [nioEventLoopGroup-4-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.maxCapacity.default: 262144
05:23:36.870 [nioEventLoopGroup-3-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x014d3839, /127.0.0.1:42730 => /127.0.0.1:35997] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35997
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:37.182 [nioEventLoopGroup-3-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:23:37.203 [nioEventLoopGroup-3-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x014d3839, /127.0.0.1:42730 => /127.0.0.1:35997] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:37.204 [nioEventLoopGroup-3-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x014d3839, /127.0.0.1:42730 => /127.0.0.1:35997] FLUSH
05:23:37.243 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:37.243 [nioEventLoopGroup-3-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x014d3839, /127.0.0.1:42730 => /127.0.0.1:35997] FLUSH
05:23:37.269 [nioEventLoopGroup-3-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x014d3839, /127.0.0.1:42730 :> /127.0.0.1:35997] INACTIVE
05:23:37.270 [nioEventLoopGroup-3-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x014d3839, /127.0.0.1:42730 :> /127.0.0.1:35997] UNREGISTERED
05:23:37.295 [nioEventLoopGroup-4-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-4-1
05:23:37.317 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:37.362 [nioEventLoopGroup-3-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe097ac01, /127.0.0.1:42764 => /127.0.0.1:35997] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35997
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
05:23:37.384 [nioEventLoopGroup-3-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
05:23:37.396 [nioEventLoopGroup-3-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe097ac01, /127.0.0.1:42764 => /127.0.0.1:35997] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:37.397 [nioEventLoopGroup-3-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe097ac01, /127.0.0.1:42764 => /127.0.0.1:35997] FLUSH
05:23:37.398 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:37.399 [nioEventLoopGroup-3-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe097ac01, /127.0.0.1:42764 => /127.0.0.1:35997] FLUSH
05:23:37.403 [nioEventLoopGroup-3-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe097ac01, /127.0.0.1:42764 :> /127.0.0.1:35997] INACTIVE
05:23:37.403 [nioEventLoopGroup-3-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe097ac01, /127.0.0.1:42764 :> /127.0.0.1:35997] UNREGISTERED
05:23:37.411 [nioEventLoopGroup-6-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-6-1
05:23:37.482 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:37.531 [nioEventLoopGroup-3-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc8166738, /127.0.0.1:42770 => /127.0.0.1:35997] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35997
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:23:37.563 [nioEventLoopGroup-3-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
05:23:37.577 [nioEventLoopGroup-3-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc8166738, /127.0.0.1:42770 => /127.0.0.1:35997] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:37.578 [nioEventLoopGroup-3-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc8166738, /127.0.0.1:42770 => /127.0.0.1:35997] FLUSH
05:23:37.580 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:37.583 [nioEventLoopGroup-3-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc8166738, /127.0.0.1:42770 => /127.0.0.1:35997] FLUSH
05:23:37.584 [nioEventLoopGroup-3-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc8166738, /127.0.0.1:42770 :> /127.0.0.1:35997] INACTIVE
05:23:37.584 [nioEventLoopGroup-3-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc8166738, /127.0.0.1:42770 :> /127.0.0.1:35997] UNREGISTERED
05:23:37.613 [nioEventLoopGroup-7-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-7-1
05:23:37.615 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:37.645 [nioEventLoopGroup-3-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf69436c, /127.0.0.1:42774 => /127.0.0.1:35997] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35997
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:37.652 [nioEventLoopGroup-3-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:23:37.657 [nioEventLoopGroup-3-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf69436c, /127.0.0.1:42774 => /127.0.0.1:35997] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:37.659 [nioEventLoopGroup-3-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf69436c, /127.0.0.1:42774 => /127.0.0.1:35997] FLUSH
05:23:37.665 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:37.668 [nioEventLoopGroup-8-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-8-1
05:23:37.668 [nioEventLoopGroup-3-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf69436c, /127.0.0.1:42774 => /127.0.0.1:35997] FLUSH
05:23:37.675 [nioEventLoopGroup-3-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf69436c, /127.0.0.1:42774 :> /127.0.0.1:35997] INACTIVE
05:23:37.675 [nioEventLoopGroup-3-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf69436c, /127.0.0.1:42774 :> /127.0.0.1:35997] UNREGISTERED
05:23:37.700 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:37.771 [nioEventLoopGroup-3-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb07f34f2, /127.0.0.1:42784 => /127.0.0.1:35997] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35997
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
05:23:37.774 [nioEventLoopGroup-3-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
05:23:37.783 [nioEventLoopGroup-3-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb07f34f2, /127.0.0.1:42784 => /127.0.0.1:35997] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:37.786 [nioEventLoopGroup-3-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb07f34f2, /127.0.0.1:42784 => /127.0.0.1:35997] FLUSH
05:23:37.797 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:37.799 [nioEventLoopGroup-3-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb07f34f2, /127.0.0.1:42784 => /127.0.0.1:35997] FLUSH
05:23:37.799 [nioEventLoopGroup-9-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-9-1
05:23:37.802 [nioEventLoopGroup-3-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb07f34f2, /127.0.0.1:42784 :> /127.0.0.1:35997] INACTIVE
05:23:37.802 [nioEventLoopGroup-3-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb07f34f2, /127.0.0.1:42784 :> /127.0.0.1:35997] UNREGISTERED
05:23:37.811 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:37.849 [nioEventLoopGroup-3-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf1507bac, /127.0.0.1:42790 => /127.0.0.1:35997] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35997
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
05:23:37.880 [nioEventLoopGroup-3-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
05:23:37.886 [nioEventLoopGroup-3-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf1507bac, /127.0.0.1:42790 => /127.0.0.1:35997] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:37.887 [nioEventLoopGroup-3-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf1507bac, /127.0.0.1:42790 => /127.0.0.1:35997] FLUSH
05:23:37.889 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:37.889 [nioEventLoopGroup-3-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf1507bac, /127.0.0.1:42790 => /127.0.0.1:35997] FLUSH
05:23:37.890 [nioEventLoopGroup-10-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-10-1
05:23:37.914 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:37.914 [nioEventLoopGroup-3-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf1507bac, /127.0.0.1:42790 :> /127.0.0.1:35997] INACTIVE
05:23:37.915 [nioEventLoopGroup-3-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf1507bac, /127.0.0.1:42790 :> /127.0.0.1:35997] UNREGISTERED
05:23:37.953 [nioEventLoopGroup-3-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2d0424c, /127.0.0.1:42802 => /127.0.0.1:35997] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35997
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:23:37.960 [nioEventLoopGroup-3-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
05:23:37.978 [nioEventLoopGroup-3-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2d0424c, /127.0.0.1:42802 => /127.0.0.1:35997] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:37.984 [nioEventLoopGroup-3-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2d0424c, /127.0.0.1:42802 => /127.0.0.1:35997] FLUSH
05:23:37.986 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:37.987 [nioEventLoopGroup-11-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-11-1
05:23:37.990 [nioEventLoopGroup-3-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2d0424c, /127.0.0.1:42802 => /127.0.0.1:35997] FLUSH
05:23:37.992 [nioEventLoopGroup-3-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2d0424c, /127.0.0.1:42802 :> /127.0.0.1:35997] INACTIVE
05:23:37.992 [nioEventLoopGroup-3-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2d0424c, /127.0.0.1:42802 :> /127.0.0.1:35997] UNREGISTERED
05:23:38.043 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:38.068 [nioEventLoopGroup-3-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x53cbc430, /127.0.0.1:42812 => /127.0.0.1:35997] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35997
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:38.096 [nioEventLoopGroup-3-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
05:23:38.097 [nioEventLoopGroup-3-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x53cbc430, /127.0.0.1:42812 => /127.0.0.1:35997] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:38.097 [nioEventLoopGroup-3-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x53cbc430, /127.0.0.1:42812 => /127.0.0.1:35997] FLUSH
05:23:38.098 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:38.099 [nioEventLoopGroup-12-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-12-1
05:23:38.100 [nioEventLoopGroup-3-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x53cbc430, /127.0.0.1:42812 => /127.0.0.1:35997] FLUSH
05:23:38.100 [nioEventLoopGroup-3-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x53cbc430, /127.0.0.1:42812 :> /127.0.0.1:35997] INACTIVE
05:23:38.100 [nioEventLoopGroup-3-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x53cbc430, /127.0.0.1:42812 :> /127.0.0.1:35997] UNREGISTERED
05:23:38.236 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:38.315 [nioEventLoopGroup-3-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x90572506, /127.0.0.1:42824 => /127.0.0.1:35997] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35997
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:38.328 [nioEventLoopGroup-3-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
05:23:38.329 [nioEventLoopGroup-3-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x90572506, /127.0.0.1:42824 => /127.0.0.1:35997] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:38.331 [nioEventLoopGroup-3-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x90572506, /127.0.0.1:42824 => /127.0.0.1:35997] FLUSH
05:23:38.332 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:38.405 [nioEventLoopGroup-3-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x90572506, /127.0.0.1:42824 => /127.0.0.1:35997] FLUSH
05:23:38.406 [nioEventLoopGroup-3-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x90572506, /127.0.0.1:42824 :> /127.0.0.1:35997] INACTIVE
05:23:38.406 [nioEventLoopGroup-3-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x90572506, /127.0.0.1:42824 :> /127.0.0.1:35997] UNREGISTERED
05:23:38.439 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:38.455 [nioEventLoopGroup-13-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-13-1
05:23:38.492 [nioEventLoopGroup-3-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x642a8ad7, /127.0.0.1:42832 => /127.0.0.1:35997] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35997
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:38.496 [nioEventLoopGroup-3-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
05:23:38.506 [nioEventLoopGroup-3-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x642a8ad7, /127.0.0.1:42832 => /127.0.0.1:35997] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:38.511 [nioEventLoopGroup-3-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x642a8ad7, /127.0.0.1:42832 => /127.0.0.1:35997] FLUSH
05:23:38.515 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:38.516 [nioEventLoopGroup-3-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x642a8ad7, /127.0.0.1:42832 => /127.0.0.1:35997] FLUSH
05:23:38.523 [nioEventLoopGroup-14-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-14-1
05:23:38.526 [nioEventLoopGroup-3-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x642a8ad7, /127.0.0.1:42832 :> /127.0.0.1:35997] INACTIVE
05:23:38.527 [nioEventLoopGroup-3-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x642a8ad7, /127.0.0.1:42832 :> /127.0.0.1:35997] UNREGISTERED
05:23:38.623 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:38.657 [nioEventLoopGroup-3-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b021230, /127.0.0.1:42838 => /127.0.0.1:35997] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35997
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:38.667 [nioEventLoopGroup-3-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
05:23:38.675 [nioEventLoopGroup-3-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b021230, /127.0.0.1:42838 => /127.0.0.1:35997] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:38.677 [nioEventLoopGroup-3-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b021230, /127.0.0.1:42838 => /127.0.0.1:35997] FLUSH
05:23:38.679 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:38.680 [nioEventLoopGroup-15-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-15-1
05:23:38.682 [nioEventLoopGroup-3-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b021230, /127.0.0.1:42838 => /127.0.0.1:35997] FLUSH
05:23:38.682 [nioEventLoopGroup-3-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b021230, /127.0.0.1:42838 :> /127.0.0.1:35997] INACTIVE
05:23:38.683 [nioEventLoopGroup-3-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b021230, /127.0.0.1:42838 :> /127.0.0.1:35997] UNREGISTERED
05:23:38.704 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:38.729 [nioEventLoopGroup-3-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbe8ead7e, /127.0.0.1:42844 => /127.0.0.1:35997] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35997
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:38.776 [nioEventLoopGroup-3-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
05:23:38.789 [nioEventLoopGroup-3-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbe8ead7e, /127.0.0.1:42844 => /127.0.0.1:35997] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:38.790 [nioEventLoopGroup-3-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbe8ead7e, /127.0.0.1:42844 => /127.0.0.1:35997] FLUSH
05:23:38.792 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:38.794 [nioEventLoopGroup-3-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbe8ead7e, /127.0.0.1:42844 => /127.0.0.1:35997] FLUSH
05:23:38.795 [nioEventLoopGroup-3-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbe8ead7e, /127.0.0.1:42844 :> /127.0.0.1:35997] INACTIVE
05:23:38.796 [nioEventLoopGroup-3-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbe8ead7e, /127.0.0.1:42844 :> /127.0.0.1:35997] UNREGISTERED
05:23:38.854 [nioEventLoopGroup-16-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-16-1
05:23:38.940 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:38.997 [nioEventLoopGroup-3-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb2e73bdc, /127.0.0.1:42850 => /127.0.0.1:35997] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35997
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:39.000 [nioEventLoopGroup-3-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:23:39.005 [nioEventLoopGroup-3-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb2e73bdc, /127.0.0.1:42850 => /127.0.0.1:35997] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:39.006 [nioEventLoopGroup-3-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb2e73bdc, /127.0.0.1:42850 => /127.0.0.1:35997] FLUSH
05:23:39.009 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:39.010 [nioEventLoopGroup-3-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb2e73bdc, /127.0.0.1:42850 => /127.0.0.1:35997] FLUSH
05:23:39.011 [nioEventLoopGroup-3-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb2e73bdc, /127.0.0.1:42850 :> /127.0.0.1:35997] INACTIVE
05:23:39.011 [nioEventLoopGroup-3-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb2e73bdc, /127.0.0.1:42850 :> /127.0.0.1:35997] UNREGISTERED
05:23:39.049 [nioEventLoopGroup-17-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-17-1
05:23:47.155 [nioEventLoopGroup-3-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc79af0db, /127.0.0.1:42924 => /127.0.0.1:35997] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status200 HTTP/1.1
Host: localhost:35997
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_102)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
05:23:47.160 [nioEventLoopGroup-3-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:47.237 [nioEventLoopGroup-3-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:47.256 [nioEventLoopGroup-3-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:23:47.266 [nioEventLoopGroup-3-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:47.269 [nioEventLoopGroup-3-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:47.273 [nioEventLoopGroup-3-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:47.284 [nioEventLoopGroup-3-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:47.287 [nioEventLoopGroup-3-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status200"
}
05:23:47.300 [nioEventLoopGroup-3-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200
}
for request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35997" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:23:47.300 [nioEventLoopGroup-3-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc79af0db, /127.0.0.1:42924 => /127.0.0.1:35997] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 200 OK
Content-Length: 0
Connection: keep-alive, 0B
05:23:47.301 [nioEventLoopGroup-3-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc79af0db, /127.0.0.1:42924 => /127.0.0.1:35997] FLUSH
05:23:48.517 [nioEventLoopGroup-3-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeef7d614, /127.0.0.1:42972 => /127.0.0.1:35997] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status200 HTTP/1.1
Host: localhost:35997
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_102)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
05:23:48.519 [nioEventLoopGroup-3-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:48.524 [nioEventLoopGroup-3-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:48.525 [nioEventLoopGroup-3-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:23:48.526 [nioEventLoopGroup-3-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:48.527 [nioEventLoopGroup-3-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:48.535 [nioEventLoopGroup-3-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:48.544 [nioEventLoopGroup-3-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:48.544 [nioEventLoopGroup-3-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status200"
}
05:23:48.547 [nioEventLoopGroup-3-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200
}
for request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35997" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:23:48.547 [nioEventLoopGroup-3-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeef7d614, /127.0.0.1:42972 => /127.0.0.1:35997] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 200 OK
Content-Length: 0
Connection: keep-alive, 0B
05:23:48.548 [nioEventLoopGroup-3-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeef7d614, /127.0.0.1:42972 => /127.0.0.1:35997] FLUSH
05:23:48.595 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
05:23:48.602 [nioEventLoopGroup-3-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x97919089, /127.0.0.1:42986 => /127.0.0.1:35997] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:35997
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
05:23:48.604 [nioEventLoopGroup-3-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x97919089, /127.0.0.1:42986 => /127.0.0.1:35997] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:48.606 [nioEventLoopGroup-3-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x97919089, /127.0.0.1:42986 => /127.0.0.1:35997] FLUSH
05:23:48.606 [nioEventLoopGroup-3-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x97919089, /127.0.0.1:42986 => /127.0.0.1:35997] CLOSE()
05:23:48.607 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:48.630 [nioEventLoopGroup-3-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-4
05:23:48.630 [nioEventLoopGroup-3-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-1
05:23:48.630 [nioEventLoopGroup-3-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-2
05:23:48.630 [nioEventLoopGroup-3-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc79af0db, /127.0.0.1:42924 :> /127.0.0.1:35997] INACTIVE
05:23:48.630 [nioEventLoopGroup-3-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeef7d614, /127.0.0.1:42972 :> /127.0.0.1:35997] INACTIVE
05:23:48.631 [nioEventLoopGroup-3-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-3
05:23:48.630 [nioEventLoopGroup-3-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-8
05:23:48.636 [nioEventLoopGroup-18-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-18-1
05:23:48.636 [nioEventLoopGroup-3-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-11
05:23:48.636 [nioEventLoopGroup-3-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-12
05:23:48.641 [nioEventLoopGroup-3-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc79af0db, /127.0.0.1:42924 :> /127.0.0.1:35997] UNREGISTERED
05:23:48.642 [nioEventLoopGroup-3-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeef7d614, /127.0.0.1:42972 :> /127.0.0.1:35997] UNREGISTERED
05:23:48.679 [nioEventLoopGroup-3-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-9
05:23:48.636 [nioEventLoopGroup-3-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-10
05:23:48.679 [nioEventLoopGroup-3-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-7
05:23:48.679 [nioEventLoopGroup-3-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-6
05:23:48.679 [nioEventLoopGroup-3-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-5
05:23:48.680 [nioEventLoopGroup-3-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-13
05:23:48.997 [MockServer thread for port: 45539] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 45539
05:23:48.997 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:49.027 [nioEventLoopGroup-20-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x052242df, /127.0.0.1:54518 => /127.0.0.1:45539] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45539
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:49.033 [nioEventLoopGroup-20-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:23:49.034 [nioEventLoopGroup-20-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x052242df, /127.0.0.1:54518 => /127.0.0.1:45539] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:49.036 [nioEventLoopGroup-20-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x052242df, /127.0.0.1:54518 => /127.0.0.1:45539] FLUSH
05:23:49.037 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:49.038 [nioEventLoopGroup-20-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x052242df, /127.0.0.1:54518 => /127.0.0.1:45539] FLUSH
05:23:49.039 [nioEventLoopGroup-20-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x052242df, /127.0.0.1:54518 :> /127.0.0.1:45539] INACTIVE
05:23:49.039 [nioEventLoopGroup-20-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x052242df, /127.0.0.1:54518 :> /127.0.0.1:45539] UNREGISTERED
05:23:49.049 [nioEventLoopGroup-21-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-21-1
05:23:49.086 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:49.103 [nioEventLoopGroup-20-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf038142c, /127.0.0.1:54522 => /127.0.0.1:45539] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45539
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
05:23:49.128 [nioEventLoopGroup-20-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
05:23:49.130 [nioEventLoopGroup-3-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x97919089, /127.0.0.1:42986 :> /127.0.0.1:35997] FLUSH
05:23:49.131 [nioEventLoopGroup-3-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x97919089, /127.0.0.1:42986 :> /127.0.0.1:35997] INACTIVE
05:23:49.132 [nioEventLoopGroup-3-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x97919089, /127.0.0.1:42986 :> /127.0.0.1:35997] UNREGISTERED
05:23:49.132 [nioEventLoopGroup-3-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-16
05:23:49.133 [nioEventLoopGroup-20-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf038142c, /127.0.0.1:54522 => /127.0.0.1:45539] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:49.133 [nioEventLoopGroup-20-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf038142c, /127.0.0.1:54522 => /127.0.0.1:45539] FLUSH
05:23:49.135 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:49.135 [nioEventLoopGroup-22-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-22-1
05:23:49.136 [nioEventLoopGroup-20-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf038142c, /127.0.0.1:54522 => /127.0.0.1:45539] FLUSH
05:23:49.139 [nioEventLoopGroup-20-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf038142c, /127.0.0.1:54522 :> /127.0.0.1:45539] INACTIVE
05:23:49.139 [nioEventLoopGroup-20-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf038142c, /127.0.0.1:54522 :> /127.0.0.1:45539] UNREGISTERED
05:23:49.225 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:49.250 [nioEventLoopGroup-20-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa3e647ae, /127.0.0.1:54526 => /127.0.0.1:45539] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45539
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:23:49.261 [nioEventLoopGroup-20-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
05:23:49.274 [nioEventLoopGroup-20-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa3e647ae, /127.0.0.1:54526 => /127.0.0.1:45539] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:49.287 [nioEventLoopGroup-20-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa3e647ae, /127.0.0.1:54526 => /127.0.0.1:45539] FLUSH
05:23:49.289 [nioEventLoopGroup-20-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa3e647ae, /127.0.0.1:54526 => /127.0.0.1:45539] FLUSH
05:23:49.289 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:49.290 [nioEventLoopGroup-20-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa3e647ae, /127.0.0.1:54526 :> /127.0.0.1:45539] INACTIVE
05:23:49.290 [nioEventLoopGroup-20-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa3e647ae, /127.0.0.1:54526 :> /127.0.0.1:45539] UNREGISTERED
05:23:49.291 [nioEventLoopGroup-23-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-23-1
05:23:49.389 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:49.430 [nioEventLoopGroup-20-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xab4b3ac0, /127.0.0.1:54540 => /127.0.0.1:45539] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45539
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:49.439 [nioEventLoopGroup-20-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:23:49.450 [nioEventLoopGroup-20-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xab4b3ac0, /127.0.0.1:54540 => /127.0.0.1:45539] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:49.451 [nioEventLoopGroup-20-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xab4b3ac0, /127.0.0.1:54540 => /127.0.0.1:45539] FLUSH
05:23:49.453 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:49.453 [nioEventLoopGroup-24-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-24-1
05:23:49.455 [nioEventLoopGroup-20-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xab4b3ac0, /127.0.0.1:54540 => /127.0.0.1:45539] FLUSH
05:23:49.455 [nioEventLoopGroup-20-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xab4b3ac0, /127.0.0.1:54540 :> /127.0.0.1:45539] INACTIVE
05:23:49.455 [nioEventLoopGroup-20-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xab4b3ac0, /127.0.0.1:54540 :> /127.0.0.1:45539] UNREGISTERED
05:23:49.575 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:49.587 [nioEventLoopGroup-20-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9852e381, /127.0.0.1:54552 => /127.0.0.1:45539] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45539
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
05:23:49.590 [nioEventLoopGroup-20-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
05:23:49.590 [nioEventLoopGroup-20-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9852e381, /127.0.0.1:54552 => /127.0.0.1:45539] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:49.591 [nioEventLoopGroup-20-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9852e381, /127.0.0.1:54552 => /127.0.0.1:45539] FLUSH
05:23:49.592 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:49.592 [nioEventLoopGroup-25-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-25-1
05:23:49.593 [nioEventLoopGroup-20-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9852e381, /127.0.0.1:54552 => /127.0.0.1:45539] FLUSH
05:23:49.593 [nioEventLoopGroup-20-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9852e381, /127.0.0.1:54552 :> /127.0.0.1:45539] INACTIVE
05:23:49.593 [nioEventLoopGroup-20-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9852e381, /127.0.0.1:54552 :> /127.0.0.1:45539] UNREGISTERED
05:23:49.596 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:49.605 [nioEventLoopGroup-20-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa7829ce, /127.0.0.1:54556 => /127.0.0.1:45539] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45539
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
05:23:49.607 [nioEventLoopGroup-20-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
05:23:49.611 [nioEventLoopGroup-20-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa7829ce, /127.0.0.1:54556 => /127.0.0.1:45539] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:49.611 [nioEventLoopGroup-20-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa7829ce, /127.0.0.1:54556 => /127.0.0.1:45539] FLUSH
05:23:49.612 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:49.613 [nioEventLoopGroup-26-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-26-1
05:23:49.615 [nioEventLoopGroup-20-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa7829ce, /127.0.0.1:54556 => /127.0.0.1:45539] FLUSH
05:23:49.616 [nioEventLoopGroup-20-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa7829ce, /127.0.0.1:54556 :> /127.0.0.1:45539] INACTIVE
05:23:49.616 [nioEventLoopGroup-20-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa7829ce, /127.0.0.1:54556 :> /127.0.0.1:45539] UNREGISTERED
05:23:49.617 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:49.649 [nioEventLoopGroup-20-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x77f7f70b, /127.0.0.1:54558 => /127.0.0.1:45539] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45539
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:23:49.658 [nioEventLoopGroup-3-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-14
05:23:49.691 [nioEventLoopGroup-3-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-15
05:23:49.713 [nioEventLoopGroup-20-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
05:23:49.719 [nioEventLoopGroup-20-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x77f7f70b, /127.0.0.1:54558 => /127.0.0.1:45539] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:49.720 [nioEventLoopGroup-20-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x77f7f70b, /127.0.0.1:54558 => /127.0.0.1:45539] FLUSH
05:23:49.722 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:49.723 [nioEventLoopGroup-20-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x77f7f70b, /127.0.0.1:54558 => /127.0.0.1:45539] FLUSH
05:23:49.747 [nioEventLoopGroup-20-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x77f7f70b, /127.0.0.1:54558 :> /127.0.0.1:45539] INACTIVE
05:23:49.747 [nioEventLoopGroup-20-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x77f7f70b, /127.0.0.1:54558 :> /127.0.0.1:45539] UNREGISTERED
05:23:49.772 [nioEventLoopGroup-27-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-27-1
05:23:49.773 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:49.815 [nioEventLoopGroup-20-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5cac9548, /127.0.0.1:54566 => /127.0.0.1:45539] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45539
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:49.907 [nioEventLoopGroup-20-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
05:23:49.910 [nioEventLoopGroup-20-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5cac9548, /127.0.0.1:54566 => /127.0.0.1:45539] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:49.911 [nioEventLoopGroup-20-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5cac9548, /127.0.0.1:54566 => /127.0.0.1:45539] FLUSH
05:23:49.912 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:49.913 [nioEventLoopGroup-28-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-28-1
05:23:49.913 [nioEventLoopGroup-20-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5cac9548, /127.0.0.1:54566 => /127.0.0.1:45539] FLUSH
05:23:49.914 [nioEventLoopGroup-20-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5cac9548, /127.0.0.1:54566 :> /127.0.0.1:45539] INACTIVE
05:23:49.914 [nioEventLoopGroup-20-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5cac9548, /127.0.0.1:54566 :> /127.0.0.1:45539] UNREGISTERED
05:23:49.999 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:50.031 [nioEventLoopGroup-20-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb4eb3d90, /127.0.0.1:54578 => /127.0.0.1:45539] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45539
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:50.034 [nioEventLoopGroup-20-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
05:23:50.036 [nioEventLoopGroup-20-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb4eb3d90, /127.0.0.1:54578 => /127.0.0.1:45539] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:50.036 [nioEventLoopGroup-20-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb4eb3d90, /127.0.0.1:54578 => /127.0.0.1:45539] FLUSH
05:23:50.039 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:50.040 [nioEventLoopGroup-20-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb4eb3d90, /127.0.0.1:54578 => /127.0.0.1:45539] FLUSH
05:23:50.040 [nioEventLoopGroup-29-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-29-1
05:23:50.061 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:50.072 [nioEventLoopGroup-20-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb4eb3d90, /127.0.0.1:54578 :> /127.0.0.1:45539] INACTIVE
05:23:50.072 [nioEventLoopGroup-20-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb4eb3d90, /127.0.0.1:54578 :> /127.0.0.1:45539] UNREGISTERED
05:23:50.128 [nioEventLoopGroup-20-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8cfe6e60, /127.0.0.1:54586 => /127.0.0.1:45539] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45539
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:50.143 [nioEventLoopGroup-20-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
05:23:50.148 [nioEventLoopGroup-20-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8cfe6e60, /127.0.0.1:54586 => /127.0.0.1:45539] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:50.151 [nioEventLoopGroup-20-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8cfe6e60, /127.0.0.1:54586 => /127.0.0.1:45539] FLUSH
05:23:50.153 [nioEventLoopGroup-20-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8cfe6e60, /127.0.0.1:54586 => /127.0.0.1:45539] FLUSH
05:23:50.153 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:50.154 [nioEventLoopGroup-20-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8cfe6e60, /127.0.0.1:54586 :> /127.0.0.1:45539] INACTIVE
05:23:50.158 [nioEventLoopGroup-20-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8cfe6e60, /127.0.0.1:54586 :> /127.0.0.1:45539] UNREGISTERED
05:23:50.158 [nioEventLoopGroup-30-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-30-1
05:23:50.159 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:50.165 [nioEventLoopGroup-20-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf9a01e96, /127.0.0.1:54590 => /127.0.0.1:45539] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45539
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:50.167 [nioEventLoopGroup-20-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
05:23:50.167 [nioEventLoopGroup-20-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf9a01e96, /127.0.0.1:54590 => /127.0.0.1:45539] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:50.167 [nioEventLoopGroup-20-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf9a01e96, /127.0.0.1:54590 => /127.0.0.1:45539] FLUSH
05:23:50.168 [nioEventLoopGroup-20-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf9a01e96, /127.0.0.1:54590 => /127.0.0.1:45539] FLUSH
05:23:50.168 [nioEventLoopGroup-20-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf9a01e96, /127.0.0.1:54590 :> /127.0.0.1:45539] INACTIVE
05:23:50.169 [nioEventLoopGroup-20-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf9a01e96, /127.0.0.1:54590 :> /127.0.0.1:45539] UNREGISTERED
05:23:50.171 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:50.172 [nioEventLoopGroup-31-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-31-1
05:23:50.175 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:50.209 [nioEventLoopGroup-20-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xafe1ee5e, /127.0.0.1:54592 => /127.0.0.1:45539] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45539
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:50.238 [nioEventLoopGroup-20-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
05:23:50.238 [nioEventLoopGroup-20-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xafe1ee5e, /127.0.0.1:54592 => /127.0.0.1:45539] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:50.241 [nioEventLoopGroup-20-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xafe1ee5e, /127.0.0.1:54592 => /127.0.0.1:45539] FLUSH
05:23:50.243 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:50.245 [nioEventLoopGroup-32-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-32-1
05:23:50.251 [nioEventLoopGroup-20-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xafe1ee5e, /127.0.0.1:54592 => /127.0.0.1:45539] FLUSH
05:23:50.251 [nioEventLoopGroup-20-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xafe1ee5e, /127.0.0.1:54592 :> /127.0.0.1:45539] INACTIVE
05:23:50.252 [nioEventLoopGroup-20-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xafe1ee5e, /127.0.0.1:54592 :> /127.0.0.1:45539] UNREGISTERED
05:23:50.255 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:50.288 [nioEventLoopGroup-20-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ffe66dc, /127.0.0.1:54606 => /127.0.0.1:45539] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45539
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:50.295 [nioEventLoopGroup-20-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:23:50.295 [nioEventLoopGroup-20-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ffe66dc, /127.0.0.1:54606 => /127.0.0.1:45539] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:50.296 [nioEventLoopGroup-20-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ffe66dc, /127.0.0.1:54606 => /127.0.0.1:45539] FLUSH
05:23:50.297 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:50.297 [nioEventLoopGroup-33-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-33-1
05:23:50.301 [nioEventLoopGroup-20-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ffe66dc, /127.0.0.1:54606 => /127.0.0.1:45539] FLUSH
05:23:50.301 [nioEventLoopGroup-20-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ffe66dc, /127.0.0.1:54606 :> /127.0.0.1:45539] INACTIVE
05:23:50.302 [nioEventLoopGroup-20-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ffe66dc, /127.0.0.1:54606 :> /127.0.0.1:45539] UNREGISTERED
05:23:50.357 [nioEventLoopGroup-20-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7a34fab2, /127.0.0.1:54612 => /127.0.0.1:45539] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status300 HTTP/1.1
Host: localhost:45539
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_102)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
05:23:50.359 [nioEventLoopGroup-20-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45539" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:50.362 [nioEventLoopGroup-20-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45539" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:50.365 [nioEventLoopGroup-20-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45539" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:23:50.373 [nioEventLoopGroup-20-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45539" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:50.373 [nioEventLoopGroup-20-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45539" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:50.387 [nioEventLoopGroup-20-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45539" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:50.391 [nioEventLoopGroup-20-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45539" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:50.397 [nioEventLoopGroup-20-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45539" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:50.402 [nioEventLoopGroup-20-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45539" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status300"
}
05:23:50.422 [nioEventLoopGroup-20-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 300
}
for request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45539" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:23:50.425 [nioEventLoopGroup-20-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7a34fab2, /127.0.0.1:54612 => /127.0.0.1:45539] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 300 Multiple Choices
Content-Length: 0
Connection: keep-alive, 0B
05:23:50.425 [nioEventLoopGroup-20-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7a34fab2, /127.0.0.1:54612 => /127.0.0.1:45539] FLUSH
05:23:50.446 [nioEventLoopGroup-20-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde771c8b, /127.0.0.1:54620 => /127.0.0.1:45539] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status300 HTTP/1.1
Host: localhost:45539
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_102)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
05:23:50.451 [nioEventLoopGroup-20-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45539" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:50.454 [nioEventLoopGroup-20-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45539" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:50.457 [nioEventLoopGroup-20-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45539" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:23:50.460 [nioEventLoopGroup-20-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45539" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:50.468 [nioEventLoopGroup-20-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45539" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:50.471 [nioEventLoopGroup-20-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45539" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:50.474 [nioEventLoopGroup-20-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45539" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:50.477 [nioEventLoopGroup-20-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45539" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:50.479 [nioEventLoopGroup-20-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45539" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status300"
}
05:23:50.482 [nioEventLoopGroup-20-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 300
}
for request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45539" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:23:50.482 [nioEventLoopGroup-20-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde771c8b, /127.0.0.1:54620 => /127.0.0.1:45539] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 300 Multiple Choices
Content-Length: 0
Connection: keep-alive, 0B
05:23:50.483 [nioEventLoopGroup-20-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde771c8b, /127.0.0.1:54620 => /127.0.0.1:45539] FLUSH
05:23:50.484 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
05:23:50.488 [nioEventLoopGroup-20-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa294364c, /127.0.0.1:54624 => /127.0.0.1:45539] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:45539
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
05:23:50.489 [nioEventLoopGroup-20-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa294364c, /127.0.0.1:54624 => /127.0.0.1:45539] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:50.489 [nioEventLoopGroup-20-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa294364c, /127.0.0.1:54624 => /127.0.0.1:45539] FLUSH
05:23:50.490 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:50.490 [nioEventLoopGroup-34-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-34-1
05:23:50.490 [nioEventLoopGroup-20-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa294364c, /127.0.0.1:54624 => /127.0.0.1:45539] CLOSE()
05:23:50.526 [nioEventLoopGroup-20-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-2
05:23:50.526 [nioEventLoopGroup-20-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-12
05:23:50.527 [nioEventLoopGroup-20-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-3
05:23:50.527 [nioEventLoopGroup-20-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-11
05:23:50.527 [nioEventLoopGroup-20-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-13
05:23:50.527 [nioEventLoopGroup-20-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7a34fab2, /127.0.0.1:54612 :> /127.0.0.1:45539] INACTIVE
05:23:50.527 [nioEventLoopGroup-20-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-5
05:23:50.527 [nioEventLoopGroup-20-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde771c8b, /127.0.0.1:54620 :> /127.0.0.1:45539] INACTIVE
05:23:50.526 [nioEventLoopGroup-20-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-10
05:23:50.534 [nioEventLoopGroup-20-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-4
05:23:50.534 [nioEventLoopGroup-20-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-6
05:23:50.534 [nioEventLoopGroup-20-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-7
05:23:50.534 [nioEventLoopGroup-20-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-8
05:23:50.608 [nioEventLoopGroup-20-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-1
05:23:50.609 [nioEventLoopGroup-20-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-9
05:23:50.609 [nioEventLoopGroup-20-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde771c8b, /127.0.0.1:54620 :> /127.0.0.1:45539] UNREGISTERED
05:23:50.609 [nioEventLoopGroup-20-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7a34fab2, /127.0.0.1:54612 :> /127.0.0.1:45539] UNREGISTERED
05:23:51.008 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:51.009 [MockServer thread for port: 41985] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 41985
05:23:51.027 [nioEventLoopGroup-20-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa294364c, /127.0.0.1:54624 :> /127.0.0.1:45539] FLUSH
05:23:51.028 [nioEventLoopGroup-20-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa294364c, /127.0.0.1:54624 :> /127.0.0.1:45539] INACTIVE
05:23:51.028 [nioEventLoopGroup-20-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa294364c, /127.0.0.1:54624 :> /127.0.0.1:45539] UNREGISTERED
05:23:51.051 [nioEventLoopGroup-36-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c8523b6, /127.0.0.1:40232 => /127.0.0.1:41985] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41985
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:51.052 [nioEventLoopGroup-20-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-16
05:23:51.052 [nioEventLoopGroup-36-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:23:51.053 [nioEventLoopGroup-36-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c8523b6, /127.0.0.1:40232 => /127.0.0.1:41985] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:51.053 [nioEventLoopGroup-36-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c8523b6, /127.0.0.1:40232 => /127.0.0.1:41985] FLUSH
05:23:51.054 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:51.055 [nioEventLoopGroup-37-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-37-1
05:23:51.056 [nioEventLoopGroup-36-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c8523b6, /127.0.0.1:40232 => /127.0.0.1:41985] FLUSH
05:23:51.056 [nioEventLoopGroup-36-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c8523b6, /127.0.0.1:40232 :> /127.0.0.1:41985] INACTIVE
05:23:51.056 [nioEventLoopGroup-36-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c8523b6, /127.0.0.1:40232 :> /127.0.0.1:41985] UNREGISTERED
05:23:51.066 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:51.075 [nioEventLoopGroup-36-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe0f1939e, /127.0.0.1:40238 => /127.0.0.1:41985] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41985
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
05:23:51.083 [nioEventLoopGroup-36-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
05:23:51.083 [nioEventLoopGroup-36-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe0f1939e, /127.0.0.1:40238 => /127.0.0.1:41985] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:51.083 [nioEventLoopGroup-36-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe0f1939e, /127.0.0.1:40238 => /127.0.0.1:41985] FLUSH
05:23:51.084 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:51.084 [nioEventLoopGroup-38-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-38-1
05:23:51.084 [nioEventLoopGroup-36-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe0f1939e, /127.0.0.1:40238 => /127.0.0.1:41985] FLUSH
05:23:51.085 [nioEventLoopGroup-36-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe0f1939e, /127.0.0.1:40238 :> /127.0.0.1:41985] INACTIVE
05:23:51.085 [nioEventLoopGroup-36-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe0f1939e, /127.0.0.1:40238 :> /127.0.0.1:41985] UNREGISTERED
05:23:51.085 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:51.094 [nioEventLoopGroup-36-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2c4f9a3b, /127.0.0.1:40240 => /127.0.0.1:41985] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41985
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:23:51.096 [nioEventLoopGroup-36-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
05:23:51.096 [nioEventLoopGroup-36-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2c4f9a3b, /127.0.0.1:40240 => /127.0.0.1:41985] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:51.096 [nioEventLoopGroup-36-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2c4f9a3b, /127.0.0.1:40240 => /127.0.0.1:41985] FLUSH
05:23:51.097 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:51.097 [nioEventLoopGroup-39-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-39-1
05:23:51.098 [nioEventLoopGroup-36-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2c4f9a3b, /127.0.0.1:40240 => /127.0.0.1:41985] FLUSH
05:23:51.098 [nioEventLoopGroup-36-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2c4f9a3b, /127.0.0.1:40240 :> /127.0.0.1:41985] INACTIVE
05:23:51.098 [nioEventLoopGroup-36-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2c4f9a3b, /127.0.0.1:40240 :> /127.0.0.1:41985] UNREGISTERED
05:23:51.114 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:51.132 [nioEventLoopGroup-36-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x01536b53, /127.0.0.1:40248 => /127.0.0.1:41985] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41985
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:51.143 [nioEventLoopGroup-36-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:23:51.175 [nioEventLoopGroup-36-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x01536b53, /127.0.0.1:40248 => /127.0.0.1:41985] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:51.176 [nioEventLoopGroup-36-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x01536b53, /127.0.0.1:40248 => /127.0.0.1:41985] FLUSH
05:23:51.176 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:51.178 [nioEventLoopGroup-40-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-40-1
05:23:51.179 [nioEventLoopGroup-36-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x01536b53, /127.0.0.1:40248 => /127.0.0.1:41985] FLUSH
05:23:51.179 [nioEventLoopGroup-36-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x01536b53, /127.0.0.1:40248 :> /127.0.0.1:41985] INACTIVE
05:23:51.180 [nioEventLoopGroup-36-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x01536b53, /127.0.0.1:40248 :> /127.0.0.1:41985] UNREGISTERED
05:23:51.212 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:51.217 [nioEventLoopGroup-36-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x82bd64a2, /127.0.0.1:40266 => /127.0.0.1:41985] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41985
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
05:23:51.220 [nioEventLoopGroup-36-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
05:23:51.226 [nioEventLoopGroup-36-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x82bd64a2, /127.0.0.1:40266 => /127.0.0.1:41985] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:51.226 [nioEventLoopGroup-36-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x82bd64a2, /127.0.0.1:40266 => /127.0.0.1:41985] FLUSH
05:23:51.227 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:51.228 [nioEventLoopGroup-41-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-41-1
05:23:51.228 [nioEventLoopGroup-36-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x82bd64a2, /127.0.0.1:40266 => /127.0.0.1:41985] FLUSH
05:23:51.228 [nioEventLoopGroup-36-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x82bd64a2, /127.0.0.1:40266 :> /127.0.0.1:41985] INACTIVE
05:23:51.228 [nioEventLoopGroup-36-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x82bd64a2, /127.0.0.1:40266 :> /127.0.0.1:41985] UNREGISTERED
05:23:51.249 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:51.259 [nioEventLoopGroup-36-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x95644eaf, /127.0.0.1:40268 => /127.0.0.1:41985] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41985
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
05:23:51.265 [nioEventLoopGroup-36-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
05:23:51.267 [nioEventLoopGroup-36-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x95644eaf, /127.0.0.1:40268 => /127.0.0.1:41985] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:51.268 [nioEventLoopGroup-36-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x95644eaf, /127.0.0.1:40268 => /127.0.0.1:41985] FLUSH
05:23:51.270 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:51.270 [nioEventLoopGroup-42-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-42-1
05:23:51.271 [nioEventLoopGroup-36-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x95644eaf, /127.0.0.1:40268 => /127.0.0.1:41985] FLUSH
05:23:51.271 [nioEventLoopGroup-36-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x95644eaf, /127.0.0.1:40268 :> /127.0.0.1:41985] INACTIVE
05:23:51.271 [nioEventLoopGroup-36-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x95644eaf, /127.0.0.1:40268 :> /127.0.0.1:41985] UNREGISTERED
05:23:51.275 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:51.281 [nioEventLoopGroup-36-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7bae189b, /127.0.0.1:40274 => /127.0.0.1:41985] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41985
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:23:51.284 [nioEventLoopGroup-36-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
05:23:51.286 [nioEventLoopGroup-36-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7bae189b, /127.0.0.1:40274 => /127.0.0.1:41985] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:51.286 [nioEventLoopGroup-36-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7bae189b, /127.0.0.1:40274 => /127.0.0.1:41985] FLUSH
05:23:51.287 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:51.287 [nioEventLoopGroup-43-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-43-1
05:23:51.290 [nioEventLoopGroup-36-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7bae189b, /127.0.0.1:40274 => /127.0.0.1:41985] FLUSH
05:23:51.293 [nioEventLoopGroup-36-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7bae189b, /127.0.0.1:40274 :> /127.0.0.1:41985] INACTIVE
05:23:51.294 [nioEventLoopGroup-36-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7bae189b, /127.0.0.1:40274 :> /127.0.0.1:41985] UNREGISTERED
05:23:51.298 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:51.305 [nioEventLoopGroup-36-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2487115d, /127.0.0.1:40280 => /127.0.0.1:41985] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41985
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:51.305 [nioEventLoopGroup-36-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
05:23:51.306 [nioEventLoopGroup-36-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2487115d, /127.0.0.1:40280 => /127.0.0.1:41985] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:51.306 [nioEventLoopGroup-36-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2487115d, /127.0.0.1:40280 => /127.0.0.1:41985] FLUSH
05:23:51.306 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:51.307 [nioEventLoopGroup-36-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2487115d, /127.0.0.1:40280 => /127.0.0.1:41985] FLUSH
05:23:51.308 [nioEventLoopGroup-36-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2487115d, /127.0.0.1:40280 :> /127.0.0.1:41985] INACTIVE
05:23:51.308 [nioEventLoopGroup-44-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-44-1
05:23:51.313 [nioEventLoopGroup-36-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2487115d, /127.0.0.1:40280 :> /127.0.0.1:41985] UNREGISTERED
05:23:51.313 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:51.330 [nioEventLoopGroup-36-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe580ab0b, /127.0.0.1:40286 => /127.0.0.1:41985] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41985
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:51.331 [nioEventLoopGroup-36-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
05:23:51.332 [nioEventLoopGroup-36-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe580ab0b, /127.0.0.1:40286 => /127.0.0.1:41985] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:51.332 [nioEventLoopGroup-36-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe580ab0b, /127.0.0.1:40286 => /127.0.0.1:41985] FLUSH
05:23:51.368 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:51.368 [nioEventLoopGroup-36-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe580ab0b, /127.0.0.1:40286 => /127.0.0.1:41985] FLUSH
05:23:51.369 [nioEventLoopGroup-36-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe580ab0b, /127.0.0.1:40286 :> /127.0.0.1:41985] INACTIVE
05:23:51.369 [nioEventLoopGroup-36-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe580ab0b, /127.0.0.1:40286 :> /127.0.0.1:41985] UNREGISTERED
05:23:51.370 [nioEventLoopGroup-45-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-45-1
05:23:51.391 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:51.405 [nioEventLoopGroup-36-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6dec8922, /127.0.0.1:40290 => /127.0.0.1:41985] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41985
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:51.407 [nioEventLoopGroup-36-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
05:23:51.408 [nioEventLoopGroup-36-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6dec8922, /127.0.0.1:40290 => /127.0.0.1:41985] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:51.409 [nioEventLoopGroup-36-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6dec8922, /127.0.0.1:40290 => /127.0.0.1:41985] FLUSH
05:23:51.409 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:51.410 [nioEventLoopGroup-46-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-46-1
05:23:51.410 [nioEventLoopGroup-36-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6dec8922, /127.0.0.1:40290 => /127.0.0.1:41985] FLUSH
05:23:51.411 [nioEventLoopGroup-36-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6dec8922, /127.0.0.1:40290 :> /127.0.0.1:41985] INACTIVE
05:23:51.412 [nioEventLoopGroup-36-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6dec8922, /127.0.0.1:40290 :> /127.0.0.1:41985] UNREGISTERED
05:23:51.423 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:51.430 [nioEventLoopGroup-36-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x25c008ea, /127.0.0.1:40296 => /127.0.0.1:41985] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41985
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:51.432 [nioEventLoopGroup-36-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
05:23:51.435 [nioEventLoopGroup-36-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x25c008ea, /127.0.0.1:40296 => /127.0.0.1:41985] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:51.435 [nioEventLoopGroup-36-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x25c008ea, /127.0.0.1:40296 => /127.0.0.1:41985] FLUSH
05:23:51.436 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:51.437 [nioEventLoopGroup-47-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-47-1
05:23:51.438 [nioEventLoopGroup-36-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x25c008ea, /127.0.0.1:40296 => /127.0.0.1:41985] FLUSH
05:23:51.438 [nioEventLoopGroup-36-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x25c008ea, /127.0.0.1:40296 :> /127.0.0.1:41985] INACTIVE
05:23:51.438 [nioEventLoopGroup-36-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x25c008ea, /127.0.0.1:40296 :> /127.0.0.1:41985] UNREGISTERED
05:23:51.442 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:51.460 [nioEventLoopGroup-36-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x96d72b65, /127.0.0.1:40300 => /127.0.0.1:41985] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41985
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:51.463 [nioEventLoopGroup-36-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
05:23:51.465 [nioEventLoopGroup-36-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x96d72b65, /127.0.0.1:40300 => /127.0.0.1:41985] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:51.465 [nioEventLoopGroup-36-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x96d72b65, /127.0.0.1:40300 => /127.0.0.1:41985] FLUSH
05:23:51.465 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:51.466 [nioEventLoopGroup-36-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x96d72b65, /127.0.0.1:40300 => /127.0.0.1:41985] FLUSH
05:23:51.466 [nioEventLoopGroup-36-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x96d72b65, /127.0.0.1:40300 :> /127.0.0.1:41985] INACTIVE
05:23:51.466 [nioEventLoopGroup-36-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x96d72b65, /127.0.0.1:40300 :> /127.0.0.1:41985] UNREGISTERED
05:23:51.466 [nioEventLoopGroup-48-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-48-1
05:23:51.470 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:51.478 [nioEventLoopGroup-36-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb885da6e, /127.0.0.1:40304 => /127.0.0.1:41985] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41985
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:51.482 [nioEventLoopGroup-36-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:23:51.483 [nioEventLoopGroup-36-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb885da6e, /127.0.0.1:40304 => /127.0.0.1:41985] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:51.483 [nioEventLoopGroup-36-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb885da6e, /127.0.0.1:40304 => /127.0.0.1:41985] FLUSH
05:23:51.484 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:51.484 [nioEventLoopGroup-49-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-49-1
05:23:51.485 [nioEventLoopGroup-36-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb885da6e, /127.0.0.1:40304 => /127.0.0.1:41985] FLUSH
05:23:51.486 [nioEventLoopGroup-36-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb885da6e, /127.0.0.1:40304 :> /127.0.0.1:41985] INACTIVE
05:23:51.486 [nioEventLoopGroup-36-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb885da6e, /127.0.0.1:40304 :> /127.0.0.1:41985] UNREGISTERED
05:23:51.499 [nioEventLoopGroup-36-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc33c7ef2, /127.0.0.1:40308 => /127.0.0.1:41985] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status400 HTTP/1.1
Host: localhost:41985
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_102)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
05:23:51.504 [nioEventLoopGroup-36-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41985" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:51.509 [nioEventLoopGroup-36-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41985" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:51.511 [nioEventLoopGroup-36-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41985" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:23:51.515 [nioEventLoopGroup-36-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41985" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:51.518 [nioEventLoopGroup-36-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41985" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:51.519 [nioEventLoopGroup-36-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41985" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:51.519 [nioEventLoopGroup-36-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41985" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:51.523 [nioEventLoopGroup-36-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41985" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:51.525 [nioEventLoopGroup-36-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41985" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:51.530 [nioEventLoopGroup-36-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41985" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status400"
}
05:23:51.532 [nioEventLoopGroup-36-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 400
}
for request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41985" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:23:51.533 [nioEventLoopGroup-36-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc33c7ef2, /127.0.0.1:40308 => /127.0.0.1:41985] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 400 Bad Request
Content-Length: 0
Connection: keep-alive, 0B
05:23:51.533 [nioEventLoopGroup-36-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc33c7ef2, /127.0.0.1:40308 => /127.0.0.1:41985] FLUSH
05:23:51.555 [nioEventLoopGroup-36-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x92a3d469, /127.0.0.1:40314 => /127.0.0.1:41985] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status400 HTTP/1.1
Host: localhost:41985
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_102)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
05:23:51.565 [nioEventLoopGroup-36-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41985" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:51.567 [nioEventLoopGroup-36-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41985" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:51.581 [nioEventLoopGroup-36-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41985" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:23:51.583 [nioEventLoopGroup-36-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41985" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:51.585 [nioEventLoopGroup-36-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41985" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:51.587 [nioEventLoopGroup-36-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41985" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:51.591 [nioEventLoopGroup-36-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41985" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:51.595 [nioEventLoopGroup-36-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41985" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:51.597 [nioEventLoopGroup-36-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41985" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:51.598 [nioEventLoopGroup-36-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41985" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status400"
}
05:23:51.611 [nioEventLoopGroup-20-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-14
05:23:51.611 [nioEventLoopGroup-20-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-15
05:23:51.630 [nioEventLoopGroup-36-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 400
}
for request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41985" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:23:51.632 [nioEventLoopGroup-36-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x92a3d469, /127.0.0.1:40314 => /127.0.0.1:41985] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 400 Bad Request
Content-Length: 0
Connection: keep-alive, 0B
05:23:51.633 [nioEventLoopGroup-36-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x92a3d469, /127.0.0.1:40314 => /127.0.0.1:41985] FLUSH
05:23:51.633 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
05:23:51.646 [nioEventLoopGroup-36-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcb6565fa, /127.0.0.1:40328 => /127.0.0.1:41985] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:41985
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
05:23:51.646 [nioEventLoopGroup-36-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcb6565fa, /127.0.0.1:40328 => /127.0.0.1:41985] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:51.647 [nioEventLoopGroup-36-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcb6565fa, /127.0.0.1:40328 => /127.0.0.1:41985] FLUSH
05:23:51.651 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:51.653 [nioEventLoopGroup-36-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcb6565fa, /127.0.0.1:40328 => /127.0.0.1:41985] CLOSE()
05:23:51.670 [nioEventLoopGroup-50-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-50-1
05:23:51.691 [nioEventLoopGroup-36-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-1
05:23:51.691 [nioEventLoopGroup-36-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-6
05:23:51.691 [nioEventLoopGroup-36-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-4
05:23:51.691 [nioEventLoopGroup-36-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-9
05:23:51.691 [nioEventLoopGroup-36-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-11
05:23:51.691 [nioEventLoopGroup-36-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-10
05:23:51.691 [nioEventLoopGroup-36-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-7
05:23:51.691 [nioEventLoopGroup-36-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-12
05:23:51.691 [nioEventLoopGroup-36-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-13
05:23:51.691 [nioEventLoopGroup-36-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-2
05:23:51.691 [nioEventLoopGroup-36-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x92a3d469, /127.0.0.1:40314 :> /127.0.0.1:41985] INACTIVE
05:23:51.691 [nioEventLoopGroup-36-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-3
05:23:51.691 [nioEventLoopGroup-36-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc33c7ef2, /127.0.0.1:40308 :> /127.0.0.1:41985] INACTIVE
05:23:51.691 [nioEventLoopGroup-36-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x92a3d469, /127.0.0.1:40314 :> /127.0.0.1:41985] UNREGISTERED
05:23:51.691 [nioEventLoopGroup-36-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-8
05:23:51.691 [nioEventLoopGroup-36-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc33c7ef2, /127.0.0.1:40308 :> /127.0.0.1:41985] UNREGISTERED
05:23:51.695 [nioEventLoopGroup-36-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-5
05:23:52.031 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:52.032 [MockServer thread for port: 44949] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 44949
05:23:52.050 [nioEventLoopGroup-52-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf94ccac9, /127.0.0.1:53172 => /127.0.0.1:44949] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44949
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:52.051 [nioEventLoopGroup-52-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:23:52.052 [nioEventLoopGroup-52-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf94ccac9, /127.0.0.1:53172 => /127.0.0.1:44949] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:52.052 [nioEventLoopGroup-52-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf94ccac9, /127.0.0.1:53172 => /127.0.0.1:44949] FLUSH
05:23:52.053 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:52.053 [nioEventLoopGroup-53-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-53-1
05:23:52.053 [nioEventLoopGroup-52-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf94ccac9, /127.0.0.1:53172 => /127.0.0.1:44949] FLUSH
05:23:52.053 [nioEventLoopGroup-52-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf94ccac9, /127.0.0.1:53172 :> /127.0.0.1:44949] INACTIVE
05:23:52.053 [nioEventLoopGroup-52-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf94ccac9, /127.0.0.1:53172 :> /127.0.0.1:44949] UNREGISTERED
05:23:52.148 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:52.154 [nioEventLoopGroup-52-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd816789d, /127.0.0.1:53180 => /127.0.0.1:44949] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44949
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
05:23:52.155 [nioEventLoopGroup-52-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
05:23:52.155 [nioEventLoopGroup-52-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd816789d, /127.0.0.1:53180 => /127.0.0.1:44949] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:52.155 [nioEventLoopGroup-52-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd816789d, /127.0.0.1:53180 => /127.0.0.1:44949] FLUSH
05:23:52.156 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:52.156 [nioEventLoopGroup-54-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-54-1
05:23:52.156 [nioEventLoopGroup-52-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd816789d, /127.0.0.1:53180 => /127.0.0.1:44949] FLUSH
05:23:52.156 [nioEventLoopGroup-52-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd816789d, /127.0.0.1:53180 :> /127.0.0.1:44949] INACTIVE
05:23:52.156 [nioEventLoopGroup-52-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd816789d, /127.0.0.1:53180 :> /127.0.0.1:44949] UNREGISTERED
05:23:52.160 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:52.179 [nioEventLoopGroup-52-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe2236197, /127.0.0.1:53184 => /127.0.0.1:44949] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44949
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:23:52.181 [nioEventLoopGroup-52-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
05:23:52.181 [nioEventLoopGroup-52-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe2236197, /127.0.0.1:53184 => /127.0.0.1:44949] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:52.181 [nioEventLoopGroup-52-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe2236197, /127.0.0.1:53184 => /127.0.0.1:44949] FLUSH
05:23:52.182 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:52.182 [nioEventLoopGroup-55-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-55-1
05:23:52.191 [nioEventLoopGroup-52-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe2236197, /127.0.0.1:53184 => /127.0.0.1:44949] FLUSH
05:23:52.191 [nioEventLoopGroup-36-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcb6565fa, /127.0.0.1:40328 :> /127.0.0.1:41985] FLUSH
05:23:52.215 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:52.232 [nioEventLoopGroup-52-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe2236197, /127.0.0.1:53184 :> /127.0.0.1:44949] INACTIVE
05:23:52.232 [nioEventLoopGroup-36-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcb6565fa, /127.0.0.1:40328 :> /127.0.0.1:41985] INACTIVE
05:23:52.233 [nioEventLoopGroup-52-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe2236197, /127.0.0.1:53184 :> /127.0.0.1:44949] UNREGISTERED
05:23:52.233 [nioEventLoopGroup-36-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcb6565fa, /127.0.0.1:40328 :> /127.0.0.1:41985] UNREGISTERED
05:23:52.234 [nioEventLoopGroup-36-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-16
05:23:52.245 [nioEventLoopGroup-52-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x32d36ef9, /127.0.0.1:53186 => /127.0.0.1:44949] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44949
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:52.247 [nioEventLoopGroup-52-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:23:52.248 [nioEventLoopGroup-52-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x32d36ef9, /127.0.0.1:53186 => /127.0.0.1:44949] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:52.248 [nioEventLoopGroup-52-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x32d36ef9, /127.0.0.1:53186 => /127.0.0.1:44949] FLUSH
05:23:52.249 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:52.249 [nioEventLoopGroup-56-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-56-1
05:23:52.250 [nioEventLoopGroup-52-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x32d36ef9, /127.0.0.1:53186 => /127.0.0.1:44949] FLUSH
05:23:52.250 [nioEventLoopGroup-52-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x32d36ef9, /127.0.0.1:53186 :> /127.0.0.1:44949] INACTIVE
05:23:52.250 [nioEventLoopGroup-52-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x32d36ef9, /127.0.0.1:53186 :> /127.0.0.1:44949] UNREGISTERED
05:23:52.252 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:52.271 [nioEventLoopGroup-52-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad6c090c, /127.0.0.1:53188 => /127.0.0.1:44949] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44949
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
05:23:52.272 [nioEventLoopGroup-52-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
05:23:52.272 [nioEventLoopGroup-52-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad6c090c, /127.0.0.1:53188 => /127.0.0.1:44949] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:52.273 [nioEventLoopGroup-52-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad6c090c, /127.0.0.1:53188 => /127.0.0.1:44949] FLUSH
05:23:52.273 [nioEventLoopGroup-52-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad6c090c, /127.0.0.1:53188 => /127.0.0.1:44949] FLUSH
05:23:52.273 [nioEventLoopGroup-52-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad6c090c, /127.0.0.1:53188 :> /127.0.0.1:44949] INACTIVE
05:23:52.273 [nioEventLoopGroup-52-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad6c090c, /127.0.0.1:53188 :> /127.0.0.1:44949] UNREGISTERED
05:23:52.273 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:52.274 [nioEventLoopGroup-57-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-57-1
05:23:52.280 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:52.292 [nioEventLoopGroup-52-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c8d7a13, /127.0.0.1:53196 => /127.0.0.1:44949] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44949
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
05:23:52.293 [nioEventLoopGroup-52-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
05:23:52.294 [nioEventLoopGroup-52-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c8d7a13, /127.0.0.1:53196 => /127.0.0.1:44949] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:52.294 [nioEventLoopGroup-52-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c8d7a13, /127.0.0.1:53196 => /127.0.0.1:44949] FLUSH
05:23:52.295 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:52.295 [nioEventLoopGroup-58-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-58-1
05:23:52.299 [nioEventLoopGroup-52-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c8d7a13, /127.0.0.1:53196 => /127.0.0.1:44949] FLUSH
05:23:52.300 [nioEventLoopGroup-52-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c8d7a13, /127.0.0.1:53196 :> /127.0.0.1:44949] INACTIVE
05:23:52.300 [nioEventLoopGroup-52-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c8d7a13, /127.0.0.1:53196 :> /127.0.0.1:44949] UNREGISTERED
05:23:52.317 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:52.321 [nioEventLoopGroup-52-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5a2181c, /127.0.0.1:53200 => /127.0.0.1:44949] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44949
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:23:52.323 [nioEventLoopGroup-52-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
05:23:52.323 [nioEventLoopGroup-52-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5a2181c, /127.0.0.1:53200 => /127.0.0.1:44949] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:52.324 [nioEventLoopGroup-52-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5a2181c, /127.0.0.1:53200 => /127.0.0.1:44949] FLUSH
05:23:52.324 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:52.325 [nioEventLoopGroup-59-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-59-1
05:23:52.328 [nioEventLoopGroup-52-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5a2181c, /127.0.0.1:53200 => /127.0.0.1:44949] FLUSH
05:23:52.328 [nioEventLoopGroup-52-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5a2181c, /127.0.0.1:53200 :> /127.0.0.1:44949] INACTIVE
05:23:52.329 [nioEventLoopGroup-52-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5a2181c, /127.0.0.1:53200 :> /127.0.0.1:44949] UNREGISTERED
05:23:52.331 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:52.342 [nioEventLoopGroup-52-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x83644e1e, /127.0.0.1:53204 => /127.0.0.1:44949] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44949
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:52.344 [nioEventLoopGroup-52-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
05:23:52.345 [nioEventLoopGroup-52-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x83644e1e, /127.0.0.1:53204 => /127.0.0.1:44949] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:52.345 [nioEventLoopGroup-52-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x83644e1e, /127.0.0.1:53204 => /127.0.0.1:44949] FLUSH
05:23:52.346 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:52.346 [nioEventLoopGroup-60-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-60-1
05:23:52.347 [nioEventLoopGroup-52-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x83644e1e, /127.0.0.1:53204 => /127.0.0.1:44949] FLUSH
05:23:52.347 [nioEventLoopGroup-52-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x83644e1e, /127.0.0.1:53204 :> /127.0.0.1:44949] INACTIVE
05:23:52.347 [nioEventLoopGroup-52-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x83644e1e, /127.0.0.1:53204 :> /127.0.0.1:44949] UNREGISTERED
05:23:52.352 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:52.382 [nioEventLoopGroup-52-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb45fe44b, /127.0.0.1:53210 => /127.0.0.1:44949] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44949
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:52.383 [nioEventLoopGroup-52-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
05:23:52.384 [nioEventLoopGroup-52-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb45fe44b, /127.0.0.1:53210 => /127.0.0.1:44949] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:52.384 [nioEventLoopGroup-52-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb45fe44b, /127.0.0.1:53210 => /127.0.0.1:44949] FLUSH
05:23:52.385 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:52.385 [nioEventLoopGroup-52-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb45fe44b, /127.0.0.1:53210 => /127.0.0.1:44949] FLUSH
05:23:52.385 [nioEventLoopGroup-52-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb45fe44b, /127.0.0.1:53210 :> /127.0.0.1:44949] INACTIVE
05:23:52.385 [nioEventLoopGroup-52-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb45fe44b, /127.0.0.1:53210 :> /127.0.0.1:44949] UNREGISTERED
05:23:52.386 [nioEventLoopGroup-61-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-61-1
05:23:52.392 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:52.397 [nioEventLoopGroup-52-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7dd7a08a, /127.0.0.1:53216 => /127.0.0.1:44949] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44949
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:52.399 [nioEventLoopGroup-52-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
05:23:52.399 [nioEventLoopGroup-52-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7dd7a08a, /127.0.0.1:53216 => /127.0.0.1:44949] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:52.400 [nioEventLoopGroup-52-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7dd7a08a, /127.0.0.1:53216 => /127.0.0.1:44949] FLUSH
05:23:52.401 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:52.401 [nioEventLoopGroup-62-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-62-1
05:23:52.402 [nioEventLoopGroup-52-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7dd7a08a, /127.0.0.1:53216 => /127.0.0.1:44949] FLUSH
05:23:52.402 [nioEventLoopGroup-52-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7dd7a08a, /127.0.0.1:53216 :> /127.0.0.1:44949] INACTIVE
05:23:52.402 [nioEventLoopGroup-52-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7dd7a08a, /127.0.0.1:53216 :> /127.0.0.1:44949] UNREGISTERED
05:23:52.405 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:52.409 [nioEventLoopGroup-52-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xec24d360, /127.0.0.1:53220 => /127.0.0.1:44949] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44949
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:52.411 [nioEventLoopGroup-52-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
05:23:52.412 [nioEventLoopGroup-52-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xec24d360, /127.0.0.1:53220 => /127.0.0.1:44949] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:52.412 [nioEventLoopGroup-52-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xec24d360, /127.0.0.1:53220 => /127.0.0.1:44949] FLUSH
05:23:52.413 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:52.413 [nioEventLoopGroup-63-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-63-1
05:23:52.414 [nioEventLoopGroup-52-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xec24d360, /127.0.0.1:53220 => /127.0.0.1:44949] FLUSH
05:23:52.414 [nioEventLoopGroup-52-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xec24d360, /127.0.0.1:53220 :> /127.0.0.1:44949] INACTIVE
05:23:52.414 [nioEventLoopGroup-52-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xec24d360, /127.0.0.1:53220 :> /127.0.0.1:44949] UNREGISTERED
05:23:52.476 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:52.496 [nioEventLoopGroup-52-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3d3572e0, /127.0.0.1:53226 => /127.0.0.1:44949] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44949
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:52.497 [nioEventLoopGroup-52-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
05:23:52.498 [nioEventLoopGroup-52-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3d3572e0, /127.0.0.1:53226 => /127.0.0.1:44949] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:52.498 [nioEventLoopGroup-52-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3d3572e0, /127.0.0.1:53226 => /127.0.0.1:44949] FLUSH
05:23:52.499 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:52.499 [nioEventLoopGroup-52-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3d3572e0, /127.0.0.1:53226 => /127.0.0.1:44949] FLUSH
05:23:52.499 [nioEventLoopGroup-52-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3d3572e0, /127.0.0.1:53226 :> /127.0.0.1:44949] INACTIVE
05:23:52.499 [nioEventLoopGroup-52-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3d3572e0, /127.0.0.1:53226 :> /127.0.0.1:44949] UNREGISTERED
05:23:52.500 [nioEventLoopGroup-64-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-64-1
05:23:52.529 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:52.538 [nioEventLoopGroup-52-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5fe5458, /127.0.0.1:53234 => /127.0.0.1:44949] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44949
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:52.542 [nioEventLoopGroup-52-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:23:52.543 [nioEventLoopGroup-52-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5fe5458, /127.0.0.1:53234 => /127.0.0.1:44949] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:52.544 [nioEventLoopGroup-52-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5fe5458, /127.0.0.1:53234 => /127.0.0.1:44949] FLUSH
05:23:52.545 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:52.546 [nioEventLoopGroup-65-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-65-1
05:23:52.547 [nioEventLoopGroup-52-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5fe5458, /127.0.0.1:53234 => /127.0.0.1:44949] FLUSH
05:23:52.547 [nioEventLoopGroup-52-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5fe5458, /127.0.0.1:53234 :> /127.0.0.1:44949] INACTIVE
05:23:52.547 [nioEventLoopGroup-52-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5fe5458, /127.0.0.1:53234 :> /127.0.0.1:44949] UNREGISTERED
05:23:52.554 [nioEventLoopGroup-52-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd21b6d1, /127.0.0.1:53236 => /127.0.0.1:44949] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status500 HTTP/1.1
Host: localhost:44949
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_102)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
05:23:52.555 [nioEventLoopGroup-52-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44949" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:52.555 [nioEventLoopGroup-52-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44949" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:52.556 [nioEventLoopGroup-52-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44949" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:23:52.556 [nioEventLoopGroup-52-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44949" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:52.556 [nioEventLoopGroup-52-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44949" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:52.556 [nioEventLoopGroup-52-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44949" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:52.557 [nioEventLoopGroup-52-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44949" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:52.557 [nioEventLoopGroup-52-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44949" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:52.557 [nioEventLoopGroup-52-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44949" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:52.557 [nioEventLoopGroup-52-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44949" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:52.558 [nioEventLoopGroup-52-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44949" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status500"
}
05:23:52.558 [nioEventLoopGroup-52-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 500
}
for request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44949" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:23:52.558 [nioEventLoopGroup-52-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd21b6d1, /127.0.0.1:53236 => /127.0.0.1:44949] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 500 Internal Server Error
Content-Length: 0
Connection: keep-alive, 0B
05:23:52.558 [nioEventLoopGroup-52-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd21b6d1, /127.0.0.1:53236 => /127.0.0.1:44949] FLUSH
05:23:52.577 [nioEventLoopGroup-52-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe412f39d, /127.0.0.1:53240 => /127.0.0.1:44949] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status500 HTTP/1.1
Host: localhost:44949
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_102)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
05:23:52.579 [nioEventLoopGroup-52-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44949" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:52.579 [nioEventLoopGroup-52-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44949" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:52.580 [nioEventLoopGroup-52-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44949" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:23:52.580 [nioEventLoopGroup-52-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44949" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:52.581 [nioEventLoopGroup-52-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44949" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:52.581 [nioEventLoopGroup-52-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44949" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:52.582 [nioEventLoopGroup-52-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44949" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:52.582 [nioEventLoopGroup-52-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44949" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:52.582 [nioEventLoopGroup-52-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44949" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:52.583 [nioEventLoopGroup-52-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44949" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:52.583 [nioEventLoopGroup-52-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44949" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status500"
}
05:23:52.584 [nioEventLoopGroup-52-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 500
}
for request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44949" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:23:52.584 [nioEventLoopGroup-52-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe412f39d, /127.0.0.1:53240 => /127.0.0.1:44949] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 500 Internal Server Error
Content-Length: 0
Connection: keep-alive, 0B
05:23:52.585 [nioEventLoopGroup-52-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe412f39d, /127.0.0.1:53240 => /127.0.0.1:44949] FLUSH
05:23:52.586 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
05:23:52.592 [nioEventLoopGroup-52-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0eb9f8b, /127.0.0.1:53244 => /127.0.0.1:44949] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:44949
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
05:23:52.592 [nioEventLoopGroup-52-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0eb9f8b, /127.0.0.1:53244 => /127.0.0.1:44949] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:52.592 [nioEventLoopGroup-52-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0eb9f8b, /127.0.0.1:53244 => /127.0.0.1:44949] FLUSH
05:23:52.593 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:52.594 [nioEventLoopGroup-66-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-66-1
05:23:52.594 [nioEventLoopGroup-52-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0eb9f8b, /127.0.0.1:53244 => /127.0.0.1:44949] CLOSE()
05:23:52.623 [nioEventLoopGroup-52-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-2
05:23:52.623 [nioEventLoopGroup-52-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-3
05:23:52.623 [nioEventLoopGroup-52-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-8
05:23:52.623 [nioEventLoopGroup-52-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-1
05:23:52.623 [nioEventLoopGroup-52-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-10
05:23:52.623 [nioEventLoopGroup-52-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-4
05:23:52.623 [nioEventLoopGroup-52-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-11
05:23:52.623 [nioEventLoopGroup-52-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-5
05:23:52.623 [nioEventLoopGroup-52-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-7
05:23:52.623 [nioEventLoopGroup-52-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd21b6d1, /127.0.0.1:53236 :> /127.0.0.1:44949] INACTIVE
05:23:52.623 [nioEventLoopGroup-52-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-12
05:23:52.623 [nioEventLoopGroup-52-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-6
05:23:52.623 [nioEventLoopGroup-52-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe412f39d, /127.0.0.1:53240 :> /127.0.0.1:44949] INACTIVE
05:23:52.623 [nioEventLoopGroup-52-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd21b6d1, /127.0.0.1:53236 :> /127.0.0.1:44949] UNREGISTERED
05:23:52.624 [nioEventLoopGroup-52-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe412f39d, /127.0.0.1:53240 :> /127.0.0.1:44949] UNREGISTERED
05:23:52.623 [nioEventLoopGroup-52-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-13
05:23:52.623 [nioEventLoopGroup-52-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-9
05:23:52.696 [nioEventLoopGroup-36-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-15
05:23:52.697 [nioEventLoopGroup-36-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-14
05:23:52.975 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:52.976 [MockServer thread for port: 45363] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 45363
05:23:52.979 [nioEventLoopGroup-68-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe3b87064, /127.0.0.1:54384 => /127.0.0.1:45363] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45363
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:52.980 [nioEventLoopGroup-68-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:23:52.981 [nioEventLoopGroup-68-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe3b87064, /127.0.0.1:54384 => /127.0.0.1:45363] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:52.981 [nioEventLoopGroup-68-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe3b87064, /127.0.0.1:54384 => /127.0.0.1:45363] FLUSH
05:23:52.982 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:52.982 [nioEventLoopGroup-69-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-69-1
05:23:52.982 [nioEventLoopGroup-68-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe3b87064, /127.0.0.1:54384 => /127.0.0.1:45363] FLUSH
05:23:52.982 [nioEventLoopGroup-68-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe3b87064, /127.0.0.1:54384 :> /127.0.0.1:45363] INACTIVE
05:23:52.982 [nioEventLoopGroup-68-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe3b87064, /127.0.0.1:54384 :> /127.0.0.1:45363] UNREGISTERED
05:23:53.075 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:53.086 [nioEventLoopGroup-68-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7592ecdf, /127.0.0.1:54388 => /127.0.0.1:45363] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45363
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
05:23:53.091 [nioEventLoopGroup-68-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
05:23:53.091 [nioEventLoopGroup-68-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7592ecdf, /127.0.0.1:54388 => /127.0.0.1:45363] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:53.092 [nioEventLoopGroup-68-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7592ecdf, /127.0.0.1:54388 => /127.0.0.1:45363] FLUSH
05:23:53.092 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:53.093 [nioEventLoopGroup-70-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-70-1
05:23:53.095 [nioEventLoopGroup-68-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7592ecdf, /127.0.0.1:54388 => /127.0.0.1:45363] FLUSH
05:23:53.095 [nioEventLoopGroup-68-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7592ecdf, /127.0.0.1:54388 :> /127.0.0.1:45363] INACTIVE
05:23:53.095 [nioEventLoopGroup-68-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7592ecdf, /127.0.0.1:54388 :> /127.0.0.1:45363] UNREGISTERED
05:23:53.112 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:53.123 [nioEventLoopGroup-52-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0eb9f8b, /127.0.0.1:53244 :> /127.0.0.1:44949] FLUSH
05:23:53.123 [nioEventLoopGroup-52-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0eb9f8b, /127.0.0.1:53244 :> /127.0.0.1:44949] INACTIVE
05:23:53.123 [nioEventLoopGroup-52-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0eb9f8b, /127.0.0.1:53244 :> /127.0.0.1:44949] UNREGISTERED
05:23:53.123 [nioEventLoopGroup-52-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-16
05:23:53.142 [nioEventLoopGroup-68-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1a6ebb3f, /127.0.0.1:54394 => /127.0.0.1:45363] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45363
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:23:53.153 [nioEventLoopGroup-68-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
05:23:53.154 [nioEventLoopGroup-68-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1a6ebb3f, /127.0.0.1:54394 => /127.0.0.1:45363] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:53.154 [nioEventLoopGroup-68-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1a6ebb3f, /127.0.0.1:54394 => /127.0.0.1:45363] FLUSH
05:23:53.155 [nioEventLoopGroup-68-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1a6ebb3f, /127.0.0.1:54394 => /127.0.0.1:45363] FLUSH
05:23:53.155 [nioEventLoopGroup-68-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1a6ebb3f, /127.0.0.1:54394 :> /127.0.0.1:45363] INACTIVE
05:23:53.155 [nioEventLoopGroup-68-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1a6ebb3f, /127.0.0.1:54394 :> /127.0.0.1:45363] UNREGISTERED
05:23:53.155 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:53.155 [nioEventLoopGroup-71-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-71-1
05:23:53.167 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:53.221 [nioEventLoopGroup-68-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc3248a80, /127.0.0.1:54398 => /127.0.0.1:45363] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45363
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:53.225 [nioEventLoopGroup-68-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:23:53.231 [nioEventLoopGroup-68-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc3248a80, /127.0.0.1:54398 => /127.0.0.1:45363] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:53.232 [nioEventLoopGroup-68-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc3248a80, /127.0.0.1:54398 => /127.0.0.1:45363] FLUSH
05:23:53.233 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:53.233 [nioEventLoopGroup-72-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-72-1
05:23:53.234 [nioEventLoopGroup-68-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc3248a80, /127.0.0.1:54398 => /127.0.0.1:45363] FLUSH
05:23:53.234 [nioEventLoopGroup-68-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc3248a80, /127.0.0.1:54398 :> /127.0.0.1:45363] INACTIVE
05:23:53.234 [nioEventLoopGroup-68-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc3248a80, /127.0.0.1:54398 :> /127.0.0.1:45363] UNREGISTERED
05:23:53.254 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:53.292 [nioEventLoopGroup-68-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8fe92f7e, /127.0.0.1:54400 => /127.0.0.1:45363] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45363
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
05:23:53.296 [nioEventLoopGroup-68-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
05:23:53.298 [nioEventLoopGroup-68-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8fe92f7e, /127.0.0.1:54400 => /127.0.0.1:45363] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:53.299 [nioEventLoopGroup-68-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8fe92f7e, /127.0.0.1:54400 => /127.0.0.1:45363] FLUSH
05:23:53.316 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:53.317 [nioEventLoopGroup-68-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8fe92f7e, /127.0.0.1:54400 => /127.0.0.1:45363] FLUSH
05:23:53.318 [nioEventLoopGroup-68-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8fe92f7e, /127.0.0.1:54400 :> /127.0.0.1:45363] INACTIVE
05:23:53.318 [nioEventLoopGroup-68-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8fe92f7e, /127.0.0.1:54400 :> /127.0.0.1:45363] UNREGISTERED
05:23:53.321 [nioEventLoopGroup-73-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-73-1
05:23:53.324 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:53.339 [nioEventLoopGroup-68-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd2c3477b, /127.0.0.1:54404 => /127.0.0.1:45363] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45363
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
05:23:53.358 [nioEventLoopGroup-68-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
05:23:53.360 [nioEventLoopGroup-68-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd2c3477b, /127.0.0.1:54404 => /127.0.0.1:45363] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:53.360 [nioEventLoopGroup-68-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd2c3477b, /127.0.0.1:54404 => /127.0.0.1:45363] FLUSH
05:23:53.361 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:53.361 [nioEventLoopGroup-74-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-74-1
05:23:53.361 [nioEventLoopGroup-68-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd2c3477b, /127.0.0.1:54404 => /127.0.0.1:45363] FLUSH
05:23:53.362 [nioEventLoopGroup-68-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd2c3477b, /127.0.0.1:54404 :> /127.0.0.1:45363] INACTIVE
05:23:53.362 [nioEventLoopGroup-68-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd2c3477b, /127.0.0.1:54404 :> /127.0.0.1:45363] UNREGISTERED
05:23:53.479 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:53.500 [nioEventLoopGroup-68-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcdcfff1f, /127.0.0.1:54416 => /127.0.0.1:45363] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45363
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:23:53.504 [nioEventLoopGroup-68-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
05:23:53.514 [nioEventLoopGroup-68-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcdcfff1f, /127.0.0.1:54416 => /127.0.0.1:45363] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:53.518 [nioEventLoopGroup-68-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcdcfff1f, /127.0.0.1:54416 => /127.0.0.1:45363] FLUSH
05:23:53.519 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:53.520 [nioEventLoopGroup-75-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-75-1
05:23:53.522 [nioEventLoopGroup-68-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcdcfff1f, /127.0.0.1:54416 => /127.0.0.1:45363] FLUSH
05:23:53.522 [nioEventLoopGroup-68-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcdcfff1f, /127.0.0.1:54416 :> /127.0.0.1:45363] INACTIVE
05:23:53.522 [nioEventLoopGroup-68-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcdcfff1f, /127.0.0.1:54416 :> /127.0.0.1:45363] UNREGISTERED
05:23:53.604 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:53.609 [nioEventLoopGroup-68-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6cb0618, /127.0.0.1:54420 => /127.0.0.1:45363] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45363
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:53.610 [nioEventLoopGroup-68-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
05:23:53.610 [nioEventLoopGroup-68-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6cb0618, /127.0.0.1:54420 => /127.0.0.1:45363] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:53.611 [nioEventLoopGroup-68-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6cb0618, /127.0.0.1:54420 => /127.0.0.1:45363] FLUSH
05:23:53.611 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:53.612 [nioEventLoopGroup-76-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-76-1
05:23:53.613 [nioEventLoopGroup-68-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6cb0618, /127.0.0.1:54420 => /127.0.0.1:45363] FLUSH
05:23:53.613 [nioEventLoopGroup-68-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6cb0618, /127.0.0.1:54420 :> /127.0.0.1:45363] INACTIVE
05:23:53.613 [nioEventLoopGroup-68-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6cb0618, /127.0.0.1:54420 :> /127.0.0.1:45363] UNREGISTERED
05:23:53.615 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:53.619 [nioEventLoopGroup-68-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8bc14a7a, /127.0.0.1:54424 => /127.0.0.1:45363] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45363
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:53.620 [nioEventLoopGroup-68-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
05:23:53.622 [nioEventLoopGroup-68-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8bc14a7a, /127.0.0.1:54424 => /127.0.0.1:45363] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:53.622 [nioEventLoopGroup-68-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8bc14a7a, /127.0.0.1:54424 => /127.0.0.1:45363] FLUSH
05:23:53.623 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:53.623 [nioEventLoopGroup-77-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-77-1
05:23:53.624 [nioEventLoopGroup-68-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8bc14a7a, /127.0.0.1:54424 => /127.0.0.1:45363] FLUSH
05:23:53.624 [nioEventLoopGroup-68-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8bc14a7a, /127.0.0.1:54424 :> /127.0.0.1:45363] INACTIVE
05:23:53.624 [nioEventLoopGroup-68-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8bc14a7a, /127.0.0.1:54424 :> /127.0.0.1:45363] UNREGISTERED
05:23:53.625 [nioEventLoopGroup-52-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-14
05:23:53.625 [nioEventLoopGroup-52-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-15
05:23:53.631 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:53.656 [nioEventLoopGroup-68-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc1fdfc8d, /127.0.0.1:54426 => /127.0.0.1:45363] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45363
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:53.657 [nioEventLoopGroup-68-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
05:23:53.657 [nioEventLoopGroup-68-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc1fdfc8d, /127.0.0.1:54426 => /127.0.0.1:45363] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:53.657 [nioEventLoopGroup-68-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc1fdfc8d, /127.0.0.1:54426 => /127.0.0.1:45363] FLUSH
05:23:53.657 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:53.667 [nioEventLoopGroup-68-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc1fdfc8d, /127.0.0.1:54426 => /127.0.0.1:45363] FLUSH
05:23:53.667 [nioEventLoopGroup-68-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc1fdfc8d, /127.0.0.1:54426 :> /127.0.0.1:45363] INACTIVE
05:23:53.667 [nioEventLoopGroup-68-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc1fdfc8d, /127.0.0.1:54426 :> /127.0.0.1:45363] UNREGISTERED
05:23:53.714 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:53.716 [nioEventLoopGroup-78-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-78-1
05:23:53.736 [nioEventLoopGroup-68-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf492e2b6, /127.0.0.1:54432 => /127.0.0.1:45363] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45363
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:53.740 [nioEventLoopGroup-68-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
05:23:53.742 [nioEventLoopGroup-68-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf492e2b6, /127.0.0.1:54432 => /127.0.0.1:45363] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:53.742 [nioEventLoopGroup-68-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf492e2b6, /127.0.0.1:54432 => /127.0.0.1:45363] FLUSH
05:23:53.743 [nioEventLoopGroup-68-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf492e2b6, /127.0.0.1:54432 => /127.0.0.1:45363] FLUSH
05:23:53.743 [nioEventLoopGroup-68-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf492e2b6, /127.0.0.1:54432 :> /127.0.0.1:45363] INACTIVE
05:23:53.744 [nioEventLoopGroup-68-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf492e2b6, /127.0.0.1:54432 :> /127.0.0.1:45363] UNREGISTERED
05:23:53.746 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:53.750 [nioEventLoopGroup-79-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-79-1
05:23:53.772 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:53.792 [nioEventLoopGroup-68-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c95fe90, /127.0.0.1:54436 => /127.0.0.1:45363] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45363
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:53.794 [nioEventLoopGroup-68-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
05:23:53.795 [nioEventLoopGroup-68-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c95fe90, /127.0.0.1:54436 => /127.0.0.1:45363] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:53.795 [nioEventLoopGroup-68-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c95fe90, /127.0.0.1:54436 => /127.0.0.1:45363] FLUSH
05:23:53.795 [nioEventLoopGroup-68-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c95fe90, /127.0.0.1:54436 => /127.0.0.1:45363] FLUSH
05:23:53.796 [nioEventLoopGroup-68-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c95fe90, /127.0.0.1:54436 :> /127.0.0.1:45363] INACTIVE
05:23:53.796 [nioEventLoopGroup-68-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c95fe90, /127.0.0.1:54436 :> /127.0.0.1:45363] UNREGISTERED
05:23:53.796 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:53.796 [nioEventLoopGroup-80-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-80-1
05:23:53.864 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:53.888 [nioEventLoopGroup-68-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfec93f7d, /127.0.0.1:54442 => /127.0.0.1:45363] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45363
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:53.889 [nioEventLoopGroup-68-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:23:53.889 [nioEventLoopGroup-68-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfec93f7d, /127.0.0.1:54442 => /127.0.0.1:45363] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:53.889 [nioEventLoopGroup-68-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfec93f7d, /127.0.0.1:54442 => /127.0.0.1:45363] FLUSH
05:23:53.890 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:53.891 [nioEventLoopGroup-81-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-81-1
05:23:53.891 [nioEventLoopGroup-68-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfec93f7d, /127.0.0.1:54442 => /127.0.0.1:45363] FLUSH
05:23:53.898 [nioEventLoopGroup-68-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfec93f7d, /127.0.0.1:54442 :> /127.0.0.1:45363] INACTIVE
05:23:53.899 [nioEventLoopGroup-68-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfec93f7d, /127.0.0.1:54442 :> /127.0.0.1:45363] UNREGISTERED
05:23:53.944 [nioEventLoopGroup-68-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x46284c2e, /127.0.0.1:54450 => /127.0.0.1:45363] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status200 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_102
Host: localhost:45363
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
05:23:53.944 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:45363" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:53.945 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:45363" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:53.955 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:45363" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:23:53.956 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:45363" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:53.956 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:45363" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:53.956 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:45363" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:53.957 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:45363" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:53.957 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:45363" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status200"
}
05:23:53.957 [nioEventLoopGroup-68-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200
}
for request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:45363" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:23:53.958 [nioEventLoopGroup-68-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x46284c2e, /127.0.0.1:54450 => /127.0.0.1:45363] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 200 OK
Content-Length: 0
Connection: keep-alive, 0B
05:23:53.958 [nioEventLoopGroup-68-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x46284c2e, /127.0.0.1:54450 => /127.0.0.1:45363] FLUSH
05:23:53.972 [nioEventLoopGroup-68-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x46284c2e, /127.0.0.1:54450 => /127.0.0.1:45363] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status200 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_102
Host: localhost:45363
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
05:23:53.973 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:45363" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:53.973 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:45363" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:53.975 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:45363" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:23:53.975 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:45363" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:53.975 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:45363" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:53.976 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:45363" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:53.976 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:45363" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:53.976 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:45363" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status200"
}
05:23:53.977 [nioEventLoopGroup-68-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200
}
for request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:45363" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:23:53.977 [nioEventLoopGroup-68-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x46284c2e, /127.0.0.1:54450 => /127.0.0.1:45363] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 200 OK
Content-Length: 0
Connection: keep-alive, 0B
05:23:53.977 [nioEventLoopGroup-68-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x46284c2e, /127.0.0.1:54450 => /127.0.0.1:45363] FLUSH
05:23:53.978 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
05:23:54.004 [nioEventLoopGroup-68-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x589b9bf3, /127.0.0.1:54452 => /127.0.0.1:45363] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:45363
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
05:23:54.004 [nioEventLoopGroup-68-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x589b9bf3, /127.0.0.1:54452 => /127.0.0.1:45363] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:54.005 [nioEventLoopGroup-68-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x589b9bf3, /127.0.0.1:54452 => /127.0.0.1:45363] FLUSH
05:23:54.005 [nioEventLoopGroup-68-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x589b9bf3, /127.0.0.1:54452 => /127.0.0.1:45363] CLOSE()
05:23:54.005 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:54.006 [nioEventLoopGroup-82-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-82-1
05:23:54.063 [nioEventLoopGroup-68-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-1
05:23:54.063 [nioEventLoopGroup-68-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-9
05:23:54.063 [nioEventLoopGroup-68-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-3
05:23:54.063 [nioEventLoopGroup-68-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-11
05:23:54.063 [nioEventLoopGroup-68-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-2
05:23:54.063 [nioEventLoopGroup-68-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-12
05:23:54.063 [nioEventLoopGroup-68-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-4
05:23:54.063 [nioEventLoopGroup-68-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-5
05:23:54.063 [nioEventLoopGroup-68-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-8
05:23:54.063 [nioEventLoopGroup-68-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-6
05:23:54.063 [nioEventLoopGroup-68-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-7
05:23:54.063 [nioEventLoopGroup-68-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-10
05:23:54.064 [nioEventLoopGroup-68-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-13
05:23:54.064 [nioEventLoopGroup-68-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x46284c2e, /127.0.0.1:54450 :> /127.0.0.1:45363] INACTIVE
05:23:54.065 [nioEventLoopGroup-68-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x46284c2e, /127.0.0.1:54450 :> /127.0.0.1:45363] UNREGISTERED
05:23:54.403 [MockServer thread for port: 36701] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 36701
05:23:54.404 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:54.406 [nioEventLoopGroup-84-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d1ec988, /127.0.0.1:52880 => /127.0.0.1:36701] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36701
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:54.407 [nioEventLoopGroup-84-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:23:54.407 [nioEventLoopGroup-84-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d1ec988, /127.0.0.1:52880 => /127.0.0.1:36701] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:54.408 [nioEventLoopGroup-84-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d1ec988, /127.0.0.1:52880 => /127.0.0.1:36701] FLUSH
05:23:54.408 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:54.408 [nioEventLoopGroup-85-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-85-1
05:23:54.408 [nioEventLoopGroup-84-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d1ec988, /127.0.0.1:52880 => /127.0.0.1:36701] FLUSH
05:23:54.408 [nioEventLoopGroup-84-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d1ec988, /127.0.0.1:52880 :> /127.0.0.1:36701] INACTIVE
05:23:54.408 [nioEventLoopGroup-84-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d1ec988, /127.0.0.1:52880 :> /127.0.0.1:36701] UNREGISTERED
05:23:54.409 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:54.412 [nioEventLoopGroup-84-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x75c454fa, /127.0.0.1:52882 => /127.0.0.1:36701] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36701
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
05:23:54.413 [nioEventLoopGroup-84-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
05:23:54.413 [nioEventLoopGroup-84-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x75c454fa, /127.0.0.1:52882 => /127.0.0.1:36701] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:54.414 [nioEventLoopGroup-84-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x75c454fa, /127.0.0.1:52882 => /127.0.0.1:36701] FLUSH
05:23:54.414 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:54.414 [nioEventLoopGroup-84-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x75c454fa, /127.0.0.1:52882 => /127.0.0.1:36701] FLUSH
05:23:54.415 [nioEventLoopGroup-86-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-86-1
05:23:54.415 [nioEventLoopGroup-84-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x75c454fa, /127.0.0.1:52882 :> /127.0.0.1:36701] INACTIVE
05:23:54.415 [nioEventLoopGroup-84-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x75c454fa, /127.0.0.1:52882 :> /127.0.0.1:36701] UNREGISTERED
05:23:54.415 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:54.418 [nioEventLoopGroup-84-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x74e14882, /127.0.0.1:52884 => /127.0.0.1:36701] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36701
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:23:54.420 [nioEventLoopGroup-84-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
05:23:54.420 [nioEventLoopGroup-84-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x74e14882, /127.0.0.1:52884 => /127.0.0.1:36701] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:54.420 [nioEventLoopGroup-84-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x74e14882, /127.0.0.1:52884 => /127.0.0.1:36701] FLUSH
05:23:54.421 [nioEventLoopGroup-84-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x74e14882, /127.0.0.1:52884 => /127.0.0.1:36701] FLUSH
05:23:54.421 [nioEventLoopGroup-84-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x74e14882, /127.0.0.1:52884 :> /127.0.0.1:36701] INACTIVE
05:23:54.421 [nioEventLoopGroup-84-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x74e14882, /127.0.0.1:52884 :> /127.0.0.1:36701] UNREGISTERED
05:23:54.421 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:54.421 [nioEventLoopGroup-87-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-87-1
05:23:54.422 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:54.425 [nioEventLoopGroup-84-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3fe6b341, /127.0.0.1:52886 => /127.0.0.1:36701] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36701
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:54.426 [nioEventLoopGroup-84-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:23:54.426 [nioEventLoopGroup-84-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3fe6b341, /127.0.0.1:52886 => /127.0.0.1:36701] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:54.426 [nioEventLoopGroup-84-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3fe6b341, /127.0.0.1:52886 => /127.0.0.1:36701] FLUSH
05:23:54.427 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:54.427 [nioEventLoopGroup-84-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3fe6b341, /127.0.0.1:52886 => /127.0.0.1:36701] FLUSH
05:23:54.427 [nioEventLoopGroup-88-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-88-1
05:23:54.428 [nioEventLoopGroup-84-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3fe6b341, /127.0.0.1:52886 :> /127.0.0.1:36701] INACTIVE
05:23:54.428 [nioEventLoopGroup-84-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3fe6b341, /127.0.0.1:52886 :> /127.0.0.1:36701] UNREGISTERED
05:23:54.430 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:54.434 [nioEventLoopGroup-84-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf1ec7e7c, /127.0.0.1:52888 => /127.0.0.1:36701] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36701
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
05:23:54.435 [nioEventLoopGroup-84-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
05:23:54.435 [nioEventLoopGroup-84-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf1ec7e7c, /127.0.0.1:52888 => /127.0.0.1:36701] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:54.435 [nioEventLoopGroup-84-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf1ec7e7c, /127.0.0.1:52888 => /127.0.0.1:36701] FLUSH
05:23:54.435 [nioEventLoopGroup-84-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf1ec7e7c, /127.0.0.1:52888 => /127.0.0.1:36701] FLUSH
05:23:54.435 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:54.436 [nioEventLoopGroup-84-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf1ec7e7c, /127.0.0.1:52888 :> /127.0.0.1:36701] INACTIVE
05:23:54.436 [nioEventLoopGroup-84-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf1ec7e7c, /127.0.0.1:52888 :> /127.0.0.1:36701] UNREGISTERED
05:23:54.436 [nioEventLoopGroup-89-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-89-1
05:23:54.437 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:54.440 [nioEventLoopGroup-84-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ff4f84d, /127.0.0.1:52890 => /127.0.0.1:36701] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36701
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
05:23:54.441 [nioEventLoopGroup-84-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
05:23:54.441 [nioEventLoopGroup-84-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ff4f84d, /127.0.0.1:52890 => /127.0.0.1:36701] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:54.442 [nioEventLoopGroup-84-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ff4f84d, /127.0.0.1:52890 => /127.0.0.1:36701] FLUSH
05:23:54.442 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:54.442 [nioEventLoopGroup-90-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-90-1
05:23:54.442 [nioEventLoopGroup-84-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ff4f84d, /127.0.0.1:52890 => /127.0.0.1:36701] FLUSH
05:23:54.442 [nioEventLoopGroup-84-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ff4f84d, /127.0.0.1:52890 :> /127.0.0.1:36701] INACTIVE
05:23:54.443 [nioEventLoopGroup-84-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ff4f84d, /127.0.0.1:52890 :> /127.0.0.1:36701] UNREGISTERED
05:23:54.443 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:54.446 [nioEventLoopGroup-84-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ec79c54, /127.0.0.1:52892 => /127.0.0.1:36701] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36701
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:23:54.447 [nioEventLoopGroup-84-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
05:23:54.447 [nioEventLoopGroup-84-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ec79c54, /127.0.0.1:52892 => /127.0.0.1:36701] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:54.447 [nioEventLoopGroup-84-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ec79c54, /127.0.0.1:52892 => /127.0.0.1:36701] FLUSH
05:23:54.448 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:54.448 [nioEventLoopGroup-84-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ec79c54, /127.0.0.1:52892 => /127.0.0.1:36701] FLUSH
05:23:54.448 [nioEventLoopGroup-84-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ec79c54, /127.0.0.1:52892 :> /127.0.0.1:36701] INACTIVE
05:23:54.448 [nioEventLoopGroup-84-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ec79c54, /127.0.0.1:52892 :> /127.0.0.1:36701] UNREGISTERED
05:23:54.448 [nioEventLoopGroup-91-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-91-1
05:23:54.449 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:54.451 [nioEventLoopGroup-84-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2ca054d2, /127.0.0.1:52894 => /127.0.0.1:36701] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36701
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:54.452 [nioEventLoopGroup-84-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
05:23:54.452 [nioEventLoopGroup-84-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2ca054d2, /127.0.0.1:52894 => /127.0.0.1:36701] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:54.452 [nioEventLoopGroup-84-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2ca054d2, /127.0.0.1:52894 => /127.0.0.1:36701] FLUSH
05:23:54.452 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:54.453 [nioEventLoopGroup-84-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2ca054d2, /127.0.0.1:52894 => /127.0.0.1:36701] FLUSH
05:23:54.453 [nioEventLoopGroup-84-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2ca054d2, /127.0.0.1:52894 :> /127.0.0.1:36701] INACTIVE
05:23:54.453 [nioEventLoopGroup-84-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2ca054d2, /127.0.0.1:52894 :> /127.0.0.1:36701] UNREGISTERED
05:23:54.453 [nioEventLoopGroup-92-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-92-1
05:23:54.454 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:54.456 [nioEventLoopGroup-84-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb51838d8, /127.0.0.1:52896 => /127.0.0.1:36701] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36701
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:54.457 [nioEventLoopGroup-84-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
05:23:54.457 [nioEventLoopGroup-84-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb51838d8, /127.0.0.1:52896 => /127.0.0.1:36701] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:54.457 [nioEventLoopGroup-84-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb51838d8, /127.0.0.1:52896 => /127.0.0.1:36701] FLUSH
05:23:54.457 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:54.457 [nioEventLoopGroup-84-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb51838d8, /127.0.0.1:52896 => /127.0.0.1:36701] FLUSH
05:23:54.457 [nioEventLoopGroup-93-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-93-1
05:23:54.457 [nioEventLoopGroup-84-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb51838d8, /127.0.0.1:52896 :> /127.0.0.1:36701] INACTIVE
05:23:54.457 [nioEventLoopGroup-84-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb51838d8, /127.0.0.1:52896 :> /127.0.0.1:36701] UNREGISTERED
05:23:54.458 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:54.461 [nioEventLoopGroup-84-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2fe54064, /127.0.0.1:52898 => /127.0.0.1:36701] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36701
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:54.461 [nioEventLoopGroup-84-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
05:23:54.462 [nioEventLoopGroup-84-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2fe54064, /127.0.0.1:52898 => /127.0.0.1:36701] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:54.462 [nioEventLoopGroup-84-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2fe54064, /127.0.0.1:52898 => /127.0.0.1:36701] FLUSH
05:23:54.462 [nioEventLoopGroup-84-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2fe54064, /127.0.0.1:52898 => /127.0.0.1:36701] FLUSH
05:23:54.462 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:54.462 [nioEventLoopGroup-84-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2fe54064, /127.0.0.1:52898 :> /127.0.0.1:36701] INACTIVE
05:23:54.462 [nioEventLoopGroup-84-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2fe54064, /127.0.0.1:52898 :> /127.0.0.1:36701] UNREGISTERED
05:23:54.462 [nioEventLoopGroup-94-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-94-1
05:23:54.463 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:54.465 [nioEventLoopGroup-84-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd8c095af, /127.0.0.1:52900 => /127.0.0.1:36701] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36701
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:54.465 [nioEventLoopGroup-84-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
05:23:54.466 [nioEventLoopGroup-84-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd8c095af, /127.0.0.1:52900 => /127.0.0.1:36701] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:54.466 [nioEventLoopGroup-84-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd8c095af, /127.0.0.1:52900 => /127.0.0.1:36701] FLUSH
05:23:54.466 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:54.466 [nioEventLoopGroup-84-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd8c095af, /127.0.0.1:52900 => /127.0.0.1:36701] FLUSH
05:23:54.466 [nioEventLoopGroup-84-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd8c095af, /127.0.0.1:52900 :> /127.0.0.1:36701] INACTIVE
05:23:54.466 [nioEventLoopGroup-84-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd8c095af, /127.0.0.1:52900 :> /127.0.0.1:36701] UNREGISTERED
05:23:54.466 [nioEventLoopGroup-95-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-95-1
05:23:54.467 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:54.469 [nioEventLoopGroup-84-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfaa6a2f5, /127.0.0.1:52902 => /127.0.0.1:36701] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36701
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:54.471 [nioEventLoopGroup-84-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
05:23:54.471 [nioEventLoopGroup-84-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfaa6a2f5, /127.0.0.1:52902 => /127.0.0.1:36701] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:54.471 [nioEventLoopGroup-84-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfaa6a2f5, /127.0.0.1:52902 => /127.0.0.1:36701] FLUSH
05:23:54.471 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:54.472 [nioEventLoopGroup-84-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfaa6a2f5, /127.0.0.1:52902 => /127.0.0.1:36701] FLUSH
05:23:54.472 [nioEventLoopGroup-84-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfaa6a2f5, /127.0.0.1:52902 :> /127.0.0.1:36701] INACTIVE
05:23:54.472 [nioEventLoopGroup-84-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfaa6a2f5, /127.0.0.1:52902 :> /127.0.0.1:36701] UNREGISTERED
05:23:54.472 [nioEventLoopGroup-96-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-96-1
05:23:54.473 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:54.479 [nioEventLoopGroup-84-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x53a2ce7a, /127.0.0.1:52904 => /127.0.0.1:36701] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36701
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:54.481 [nioEventLoopGroup-84-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:23:54.481 [nioEventLoopGroup-84-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x53a2ce7a, /127.0.0.1:52904 => /127.0.0.1:36701] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:54.481 [nioEventLoopGroup-84-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x53a2ce7a, /127.0.0.1:52904 => /127.0.0.1:36701] FLUSH
05:23:54.481 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:54.481 [nioEventLoopGroup-84-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x53a2ce7a, /127.0.0.1:52904 => /127.0.0.1:36701] FLUSH
05:23:54.481 [nioEventLoopGroup-84-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x53a2ce7a, /127.0.0.1:52904 :> /127.0.0.1:36701] INACTIVE
05:23:54.481 [nioEventLoopGroup-84-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x53a2ce7a, /127.0.0.1:52904 :> /127.0.0.1:36701] UNREGISTERED
05:23:54.482 [nioEventLoopGroup-97-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-97-1
05:23:54.484 [nioEventLoopGroup-84-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3513929c, /127.0.0.1:52906 => /127.0.0.1:36701] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status300 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_102
Host: localhost:36701
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
05:23:54.485 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36701" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:54.485 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36701" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:54.485 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36701" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:23:54.486 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36701" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:54.486 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36701" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:54.486 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36701" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:54.486 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36701" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:54.487 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36701" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:54.487 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36701" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status300"
}
05:23:54.487 [nioEventLoopGroup-84-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 300
}
for request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36701" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:23:54.487 [nioEventLoopGroup-84-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3513929c, /127.0.0.1:52906 => /127.0.0.1:36701] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 300 Multiple Choices
Content-Length: 0
Connection: keep-alive, 0B
05:23:54.487 [nioEventLoopGroup-84-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3513929c, /127.0.0.1:52906 => /127.0.0.1:36701] FLUSH
05:23:54.489 [nioEventLoopGroup-84-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3513929c, /127.0.0.1:52906 => /127.0.0.1:36701] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status300 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_102
Host: localhost:36701
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
05:23:54.489 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36701" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:54.489 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36701" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:54.490 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36701" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:23:54.490 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36701" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:54.492 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36701" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:54.492 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36701" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:54.492 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36701" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:54.493 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36701" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:54.493 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36701" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status300"
}
05:23:54.493 [nioEventLoopGroup-84-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 300
}
for request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36701" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:23:54.493 [nioEventLoopGroup-84-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3513929c, /127.0.0.1:52906 => /127.0.0.1:36701] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 300 Multiple Choices
Content-Length: 0
Connection: keep-alive, 0B
05:23:54.493 [nioEventLoopGroup-84-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3513929c, /127.0.0.1:52906 => /127.0.0.1:36701] FLUSH
05:23:54.494 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
05:23:54.496 [nioEventLoopGroup-84-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2455635, /127.0.0.1:52908 => /127.0.0.1:36701] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:36701
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
05:23:54.496 [nioEventLoopGroup-84-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2455635, /127.0.0.1:52908 => /127.0.0.1:36701] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:54.496 [nioEventLoopGroup-84-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2455635, /127.0.0.1:52908 => /127.0.0.1:36701] FLUSH
05:23:54.497 [nioEventLoopGroup-84-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2455635, /127.0.0.1:52908 => /127.0.0.1:36701] CLOSE()
05:23:54.497 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:54.497 [nioEventLoopGroup-98-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-98-1
05:23:54.498 [nioEventLoopGroup-84-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-1
05:23:54.498 [nioEventLoopGroup-84-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-2
05:23:54.498 [nioEventLoopGroup-84-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-5
05:23:54.498 [nioEventLoopGroup-84-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-8
05:23:54.498 [nioEventLoopGroup-84-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-11
05:23:54.498 [nioEventLoopGroup-84-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-10
05:23:54.498 [nioEventLoopGroup-84-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3513929c, /127.0.0.1:52906 :> /127.0.0.1:36701] INACTIVE
05:23:54.498 [nioEventLoopGroup-84-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-9
05:23:54.499 [nioEventLoopGroup-84-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-3
05:23:54.499 [nioEventLoopGroup-84-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-13
05:23:54.499 [nioEventLoopGroup-84-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3513929c, /127.0.0.1:52906 :> /127.0.0.1:36701] UNREGISTERED
05:23:54.499 [nioEventLoopGroup-84-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-6
05:23:54.499 [nioEventLoopGroup-84-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-7
05:23:54.499 [nioEventLoopGroup-84-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-4
05:23:54.499 [nioEventLoopGroup-84-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-12
05:23:54.564 [nioEventLoopGroup-68-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x589b9bf3, /127.0.0.1:54452 :> /127.0.0.1:45363] FLUSH
05:23:54.564 [nioEventLoopGroup-68-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x589b9bf3, /127.0.0.1:54452 :> /127.0.0.1:45363] INACTIVE
05:23:54.564 [nioEventLoopGroup-68-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x589b9bf3, /127.0.0.1:54452 :> /127.0.0.1:45363] UNREGISTERED
05:23:54.565 [nioEventLoopGroup-68-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-15
05:23:54.871 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:54.872 [MockServer thread for port: 38055] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 38055
05:23:54.887 [nioEventLoopGroup-100-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb9761d41, /127.0.0.1:33760 => /127.0.0.1:38055] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38055
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:54.888 [nioEventLoopGroup-100-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:23:54.889 [nioEventLoopGroup-100-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb9761d41, /127.0.0.1:33760 => /127.0.0.1:38055] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:54.889 [nioEventLoopGroup-100-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb9761d41, /127.0.0.1:33760 => /127.0.0.1:38055] FLUSH
05:23:54.889 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:54.889 [nioEventLoopGroup-100-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb9761d41, /127.0.0.1:33760 => /127.0.0.1:38055] FLUSH
05:23:54.889 [nioEventLoopGroup-100-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb9761d41, /127.0.0.1:33760 :> /127.0.0.1:38055] INACTIVE
05:23:54.889 [nioEventLoopGroup-100-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb9761d41, /127.0.0.1:33760 :> /127.0.0.1:38055] UNREGISTERED
05:23:54.890 [nioEventLoopGroup-101-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-101-1
05:23:54.891 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:54.897 [nioEventLoopGroup-100-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd9a674c, /127.0.0.1:33766 => /127.0.0.1:38055] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38055
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
05:23:54.898 [nioEventLoopGroup-100-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
05:23:54.898 [nioEventLoopGroup-100-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd9a674c, /127.0.0.1:33766 => /127.0.0.1:38055] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:54.898 [nioEventLoopGroup-100-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd9a674c, /127.0.0.1:33766 => /127.0.0.1:38055] FLUSH
05:23:54.900 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:54.900 [nioEventLoopGroup-100-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd9a674c, /127.0.0.1:33766 => /127.0.0.1:38055] FLUSH
05:23:54.900 [nioEventLoopGroup-100-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd9a674c, /127.0.0.1:33766 :> /127.0.0.1:38055] INACTIVE
05:23:54.900 [nioEventLoopGroup-100-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd9a674c, /127.0.0.1:33766 :> /127.0.0.1:38055] UNREGISTERED
05:23:54.900 [nioEventLoopGroup-102-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-102-1
05:23:54.901 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:54.904 [nioEventLoopGroup-100-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7c0cd4b1, /127.0.0.1:33768 => /127.0.0.1:38055] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38055
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:23:54.905 [nioEventLoopGroup-100-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
05:23:54.906 [nioEventLoopGroup-100-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7c0cd4b1, /127.0.0.1:33768 => /127.0.0.1:38055] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:54.906 [nioEventLoopGroup-100-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7c0cd4b1, /127.0.0.1:33768 => /127.0.0.1:38055] FLUSH
05:23:54.906 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:54.906 [nioEventLoopGroup-100-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7c0cd4b1, /127.0.0.1:33768 => /127.0.0.1:38055] FLUSH
05:23:54.906 [nioEventLoopGroup-100-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7c0cd4b1, /127.0.0.1:33768 :> /127.0.0.1:38055] INACTIVE
05:23:54.906 [nioEventLoopGroup-100-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7c0cd4b1, /127.0.0.1:33768 :> /127.0.0.1:38055] UNREGISTERED
05:23:54.906 [nioEventLoopGroup-103-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-103-1
05:23:54.907 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:54.910 [nioEventLoopGroup-100-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x33ee12fa, /127.0.0.1:33770 => /127.0.0.1:38055] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38055
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:54.911 [nioEventLoopGroup-100-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:23:54.911 [nioEventLoopGroup-100-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x33ee12fa, /127.0.0.1:33770 => /127.0.0.1:38055] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:54.911 [nioEventLoopGroup-100-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x33ee12fa, /127.0.0.1:33770 => /127.0.0.1:38055] FLUSH
05:23:54.911 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:54.911 [nioEventLoopGroup-100-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x33ee12fa, /127.0.0.1:33770 => /127.0.0.1:38055] FLUSH
05:23:54.911 [nioEventLoopGroup-100-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x33ee12fa, /127.0.0.1:33770 :> /127.0.0.1:38055] INACTIVE
05:23:54.912 [nioEventLoopGroup-100-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x33ee12fa, /127.0.0.1:33770 :> /127.0.0.1:38055] UNREGISTERED
05:23:54.912 [nioEventLoopGroup-104-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-104-1
05:23:54.912 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:54.917 [nioEventLoopGroup-100-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x28cc62a2, /127.0.0.1:33772 => /127.0.0.1:38055] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38055
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
05:23:54.918 [nioEventLoopGroup-100-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
05:23:54.918 [nioEventLoopGroup-100-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x28cc62a2, /127.0.0.1:33772 => /127.0.0.1:38055] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:54.918 [nioEventLoopGroup-100-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x28cc62a2, /127.0.0.1:33772 => /127.0.0.1:38055] FLUSH
05:23:54.919 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:54.919 [nioEventLoopGroup-100-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x28cc62a2, /127.0.0.1:33772 => /127.0.0.1:38055] FLUSH
05:23:54.919 [nioEventLoopGroup-100-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x28cc62a2, /127.0.0.1:33772 :> /127.0.0.1:38055] INACTIVE
05:23:54.919 [nioEventLoopGroup-100-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x28cc62a2, /127.0.0.1:33772 :> /127.0.0.1:38055] UNREGISTERED
05:23:54.919 [nioEventLoopGroup-105-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-105-1
05:23:54.920 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:54.923 [nioEventLoopGroup-100-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1aa43b9d, /127.0.0.1:33776 => /127.0.0.1:38055] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38055
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
05:23:54.924 [nioEventLoopGroup-100-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
05:23:54.925 [nioEventLoopGroup-100-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1aa43b9d, /127.0.0.1:33776 => /127.0.0.1:38055] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:54.925 [nioEventLoopGroup-100-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1aa43b9d, /127.0.0.1:33776 => /127.0.0.1:38055] FLUSH
05:23:54.925 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:54.925 [nioEventLoopGroup-100-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1aa43b9d, /127.0.0.1:33776 => /127.0.0.1:38055] FLUSH
05:23:54.925 [nioEventLoopGroup-100-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1aa43b9d, /127.0.0.1:33776 :> /127.0.0.1:38055] INACTIVE
05:23:54.925 [nioEventLoopGroup-100-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1aa43b9d, /127.0.0.1:33776 :> /127.0.0.1:38055] UNREGISTERED
05:23:54.925 [nioEventLoopGroup-106-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-106-1
05:23:54.926 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:54.932 [nioEventLoopGroup-100-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x055d059b, /127.0.0.1:33780 => /127.0.0.1:38055] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38055
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:23:54.933 [nioEventLoopGroup-100-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
05:23:54.933 [nioEventLoopGroup-100-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x055d059b, /127.0.0.1:33780 => /127.0.0.1:38055] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:54.933 [nioEventLoopGroup-100-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x055d059b, /127.0.0.1:33780 => /127.0.0.1:38055] FLUSH
05:23:54.933 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:54.934 [nioEventLoopGroup-100-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x055d059b, /127.0.0.1:33780 => /127.0.0.1:38055] FLUSH
05:23:54.934 [nioEventLoopGroup-100-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x055d059b, /127.0.0.1:33780 :> /127.0.0.1:38055] INACTIVE
05:23:54.934 [nioEventLoopGroup-107-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-107-1
05:23:54.934 [nioEventLoopGroup-100-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x055d059b, /127.0.0.1:33780 :> /127.0.0.1:38055] UNREGISTERED
05:23:54.934 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:54.938 [nioEventLoopGroup-100-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x95cf4acc, /127.0.0.1:33782 => /127.0.0.1:38055] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38055
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:54.939 [nioEventLoopGroup-100-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
05:23:54.939 [nioEventLoopGroup-100-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x95cf4acc, /127.0.0.1:33782 => /127.0.0.1:38055] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:54.940 [nioEventLoopGroup-100-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x95cf4acc, /127.0.0.1:33782 => /127.0.0.1:38055] FLUSH
05:23:54.940 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:54.940 [nioEventLoopGroup-100-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x95cf4acc, /127.0.0.1:33782 => /127.0.0.1:38055] FLUSH
05:23:54.940 [nioEventLoopGroup-100-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x95cf4acc, /127.0.0.1:33782 :> /127.0.0.1:38055] INACTIVE
05:23:54.940 [nioEventLoopGroup-108-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-108-1
05:23:54.940 [nioEventLoopGroup-100-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x95cf4acc, /127.0.0.1:33782 :> /127.0.0.1:38055] UNREGISTERED
05:23:54.942 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:54.944 [nioEventLoopGroup-100-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x28d75d3b, /127.0.0.1:33784 => /127.0.0.1:38055] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38055
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:54.945 [nioEventLoopGroup-100-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
05:23:54.945 [nioEventLoopGroup-100-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x28d75d3b, /127.0.0.1:33784 => /127.0.0.1:38055] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:54.945 [nioEventLoopGroup-100-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x28d75d3b, /127.0.0.1:33784 => /127.0.0.1:38055] FLUSH
05:23:54.945 [nioEventLoopGroup-100-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x28d75d3b, /127.0.0.1:33784 => /127.0.0.1:38055] FLUSH
05:23:54.945 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:54.945 [nioEventLoopGroup-100-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x28d75d3b, /127.0.0.1:33784 :> /127.0.0.1:38055] INACTIVE
05:23:54.945 [nioEventLoopGroup-100-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x28d75d3b, /127.0.0.1:33784 :> /127.0.0.1:38055] UNREGISTERED
05:23:54.945 [nioEventLoopGroup-109-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-109-1
05:23:54.946 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:54.949 [nioEventLoopGroup-100-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfedc79f6, /127.0.0.1:33786 => /127.0.0.1:38055] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38055
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:54.950 [nioEventLoopGroup-100-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
05:23:54.950 [nioEventLoopGroup-100-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfedc79f6, /127.0.0.1:33786 => /127.0.0.1:38055] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:54.950 [nioEventLoopGroup-100-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfedc79f6, /127.0.0.1:33786 => /127.0.0.1:38055] FLUSH
05:23:54.950 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:54.950 [nioEventLoopGroup-100-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfedc79f6, /127.0.0.1:33786 => /127.0.0.1:38055] FLUSH
05:23:54.951 [nioEventLoopGroup-100-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfedc79f6, /127.0.0.1:33786 :> /127.0.0.1:38055] INACTIVE
05:23:54.951 [nioEventLoopGroup-100-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfedc79f6, /127.0.0.1:33786 :> /127.0.0.1:38055] UNREGISTERED
05:23:54.951 [nioEventLoopGroup-110-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-110-1
05:23:54.951 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:54.954 [nioEventLoopGroup-100-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x73e9da91, /127.0.0.1:33788 => /127.0.0.1:38055] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38055
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:54.955 [nioEventLoopGroup-100-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
05:23:54.955 [nioEventLoopGroup-100-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x73e9da91, /127.0.0.1:33788 => /127.0.0.1:38055] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:54.955 [nioEventLoopGroup-100-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x73e9da91, /127.0.0.1:33788 => /127.0.0.1:38055] FLUSH
05:23:54.955 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:54.955 [nioEventLoopGroup-100-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x73e9da91, /127.0.0.1:33788 => /127.0.0.1:38055] FLUSH
05:23:54.955 [nioEventLoopGroup-100-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x73e9da91, /127.0.0.1:33788 :> /127.0.0.1:38055] INACTIVE
05:23:54.955 [nioEventLoopGroup-100-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x73e9da91, /127.0.0.1:33788 :> /127.0.0.1:38055] UNREGISTERED
05:23:54.956 [nioEventLoopGroup-111-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-111-1
05:23:54.956 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:54.959 [nioEventLoopGroup-100-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x91d22cda, /127.0.0.1:33790 => /127.0.0.1:38055] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38055
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:54.960 [nioEventLoopGroup-100-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
05:23:54.960 [nioEventLoopGroup-100-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x91d22cda, /127.0.0.1:33790 => /127.0.0.1:38055] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:54.960 [nioEventLoopGroup-100-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x91d22cda, /127.0.0.1:33790 => /127.0.0.1:38055] FLUSH
05:23:54.961 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:54.961 [nioEventLoopGroup-100-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x91d22cda, /127.0.0.1:33790 => /127.0.0.1:38055] FLUSH
05:23:54.961 [nioEventLoopGroup-100-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x91d22cda, /127.0.0.1:33790 :> /127.0.0.1:38055] INACTIVE
05:23:54.961 [nioEventLoopGroup-100-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x91d22cda, /127.0.0.1:33790 :> /127.0.0.1:38055] UNREGISTERED
05:23:54.961 [nioEventLoopGroup-112-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-112-1
05:23:54.962 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:54.966 [nioEventLoopGroup-100-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4a7461ab, /127.0.0.1:33792 => /127.0.0.1:38055] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38055
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:54.968 [nioEventLoopGroup-100-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:23:54.968 [nioEventLoopGroup-100-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4a7461ab, /127.0.0.1:33792 => /127.0.0.1:38055] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:54.969 [nioEventLoopGroup-100-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4a7461ab, /127.0.0.1:33792 => /127.0.0.1:38055] FLUSH
05:23:54.969 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:54.969 [nioEventLoopGroup-100-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4a7461ab, /127.0.0.1:33792 => /127.0.0.1:38055] FLUSH
05:23:54.969 [nioEventLoopGroup-100-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4a7461ab, /127.0.0.1:33792 :> /127.0.0.1:38055] INACTIVE
05:23:54.969 [nioEventLoopGroup-100-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4a7461ab, /127.0.0.1:33792 :> /127.0.0.1:38055] UNREGISTERED
05:23:54.969 [nioEventLoopGroup-113-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-113-1
05:23:54.972 [nioEventLoopGroup-100-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x49f4ff3c, /127.0.0.1:33794 => /127.0.0.1:38055] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status400 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_102
Host: localhost:38055
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
05:23:54.973 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:38055" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:54.973 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:38055" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:54.973 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:38055" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:23:54.974 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:38055" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:54.974 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:38055" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:54.974 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:38055" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:54.975 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:38055" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:54.975 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:38055" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:54.975 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:38055" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:54.975 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:38055" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status400"
}
05:23:54.976 [nioEventLoopGroup-100-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 400
}
for request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:38055" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:23:54.976 [nioEventLoopGroup-100-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x49f4ff3c, /127.0.0.1:33794 => /127.0.0.1:38055] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 400 Bad Request
Content-Length: 0
Connection: keep-alive, 0B
05:23:54.976 [nioEventLoopGroup-100-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x49f4ff3c, /127.0.0.1:33794 => /127.0.0.1:38055] FLUSH
05:23:54.978 [nioEventLoopGroup-100-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x49f4ff3c, /127.0.0.1:33794 => /127.0.0.1:38055] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status400 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_102
Host: localhost:38055
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
05:23:54.978 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:38055" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:54.978 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:38055" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:54.979 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:38055" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:23:54.979 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:38055" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:54.979 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:38055" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:54.979 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:38055" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:54.980 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:38055" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:54.980 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:38055" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:54.980 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:38055" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:54.980 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:38055" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status400"
}
05:23:54.981 [nioEventLoopGroup-100-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 400
}
for request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:38055" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:23:54.981 [nioEventLoopGroup-100-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x49f4ff3c, /127.0.0.1:33794 => /127.0.0.1:38055] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 400 Bad Request
Content-Length: 0
Connection: keep-alive, 0B
05:23:54.981 [nioEventLoopGroup-100-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x49f4ff3c, /127.0.0.1:33794 => /127.0.0.1:38055] FLUSH
05:23:54.981 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
05:23:54.983 [nioEventLoopGroup-100-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3943f06c, /127.0.0.1:33796 => /127.0.0.1:38055] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:38055
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
05:23:54.983 [nioEventLoopGroup-100-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3943f06c, /127.0.0.1:33796 => /127.0.0.1:38055] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:54.984 [nioEventLoopGroup-100-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3943f06c, /127.0.0.1:33796 => /127.0.0.1:38055] FLUSH
05:23:54.984 [nioEventLoopGroup-100-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3943f06c, /127.0.0.1:33796 => /127.0.0.1:38055] CLOSE()
05:23:54.984 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:54.984 [nioEventLoopGroup-114-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-114-1
05:23:54.986 [nioEventLoopGroup-100-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-3
05:23:54.986 [nioEventLoopGroup-100-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-1
05:23:54.986 [nioEventLoopGroup-100-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-7
05:23:54.986 [nioEventLoopGroup-100-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-5
05:23:54.986 [nioEventLoopGroup-100-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-4
05:23:54.986 [nioEventLoopGroup-100-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-2
05:23:54.986 [nioEventLoopGroup-100-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-8
05:23:54.986 [nioEventLoopGroup-100-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-6
05:23:54.986 [nioEventLoopGroup-100-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-12
05:23:54.986 [nioEventLoopGroup-100-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-9
05:23:54.986 [nioEventLoopGroup-100-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-10
05:23:54.986 [nioEventLoopGroup-100-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-11
05:23:54.986 [nioEventLoopGroup-100-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-13
05:23:54.986 [nioEventLoopGroup-100-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x49f4ff3c, /127.0.0.1:33794 :> /127.0.0.1:38055] INACTIVE
05:23:54.986 [nioEventLoopGroup-100-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x49f4ff3c, /127.0.0.1:33794 :> /127.0.0.1:38055] UNREGISTERED
05:23:54.999 [nioEventLoopGroup-84-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2455635, /127.0.0.1:52908 :> /127.0.0.1:36701] FLUSH
05:23:54.999 [nioEventLoopGroup-84-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2455635, /127.0.0.1:52908 :> /127.0.0.1:36701] INACTIVE
05:23:54.999 [nioEventLoopGroup-84-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2455635, /127.0.0.1:52908 :> /127.0.0.1:36701] UNREGISTERED
05:23:54.999 [nioEventLoopGroup-84-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-15
05:23:55.066 [nioEventLoopGroup-68-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-14
05:23:55.339 [MockServer thread for port: 33951] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 33951
05:23:55.339 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:55.342 [nioEventLoopGroup-116-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbad94933, /127.0.0.1:46488 => /127.0.0.1:33951] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33951
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:55.342 [nioEventLoopGroup-116-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:23:55.342 [nioEventLoopGroup-116-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbad94933, /127.0.0.1:46488 => /127.0.0.1:33951] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:55.343 [nioEventLoopGroup-116-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbad94933, /127.0.0.1:46488 => /127.0.0.1:33951] FLUSH
05:23:55.343 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:55.343 [nioEventLoopGroup-116-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbad94933, /127.0.0.1:46488 => /127.0.0.1:33951] FLUSH
05:23:55.343 [nioEventLoopGroup-116-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbad94933, /127.0.0.1:46488 :> /127.0.0.1:33951] INACTIVE
05:23:55.343 [nioEventLoopGroup-117-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-117-1
05:23:55.343 [nioEventLoopGroup-116-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbad94933, /127.0.0.1:46488 :> /127.0.0.1:33951] UNREGISTERED
05:23:55.345 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:55.347 [nioEventLoopGroup-116-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5934d141, /127.0.0.1:46490 => /127.0.0.1:33951] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33951
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
05:23:55.348 [nioEventLoopGroup-116-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
05:23:55.348 [nioEventLoopGroup-116-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5934d141, /127.0.0.1:46490 => /127.0.0.1:33951] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:55.348 [nioEventLoopGroup-116-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5934d141, /127.0.0.1:46490 => /127.0.0.1:33951] FLUSH
05:23:55.349 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:55.349 [nioEventLoopGroup-116-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5934d141, /127.0.0.1:46490 => /127.0.0.1:33951] FLUSH
05:23:55.349 [nioEventLoopGroup-116-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5934d141, /127.0.0.1:46490 :> /127.0.0.1:33951] INACTIVE
05:23:55.349 [nioEventLoopGroup-116-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5934d141, /127.0.0.1:46490 :> /127.0.0.1:33951] UNREGISTERED
05:23:55.349 [nioEventLoopGroup-118-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-118-1
05:23:55.349 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:55.352 [nioEventLoopGroup-116-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x81f07d0a, /127.0.0.1:46492 => /127.0.0.1:33951] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33951
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:23:55.353 [nioEventLoopGroup-116-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
05:23:55.353 [nioEventLoopGroup-116-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x81f07d0a, /127.0.0.1:46492 => /127.0.0.1:33951] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:55.353 [nioEventLoopGroup-116-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x81f07d0a, /127.0.0.1:46492 => /127.0.0.1:33951] FLUSH
05:23:55.353 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:55.353 [nioEventLoopGroup-116-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x81f07d0a, /127.0.0.1:46492 => /127.0.0.1:33951] FLUSH
05:23:55.353 [nioEventLoopGroup-116-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x81f07d0a, /127.0.0.1:46492 :> /127.0.0.1:33951] INACTIVE
05:23:55.353 [nioEventLoopGroup-116-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x81f07d0a, /127.0.0.1:46492 :> /127.0.0.1:33951] UNREGISTERED
05:23:55.354 [nioEventLoopGroup-119-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-119-1
05:23:55.354 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:55.357 [nioEventLoopGroup-116-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfbc8671b, /127.0.0.1:46494 => /127.0.0.1:33951] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33951
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:55.357 [nioEventLoopGroup-116-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:23:55.358 [nioEventLoopGroup-116-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfbc8671b, /127.0.0.1:46494 => /127.0.0.1:33951] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:55.358 [nioEventLoopGroup-116-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfbc8671b, /127.0.0.1:46494 => /127.0.0.1:33951] FLUSH
05:23:55.358 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:55.358 [nioEventLoopGroup-116-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfbc8671b, /127.0.0.1:46494 => /127.0.0.1:33951] FLUSH
05:23:55.358 [nioEventLoopGroup-116-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfbc8671b, /127.0.0.1:46494 :> /127.0.0.1:33951] INACTIVE
05:23:55.358 [nioEventLoopGroup-116-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfbc8671b, /127.0.0.1:46494 :> /127.0.0.1:33951] UNREGISTERED
05:23:55.358 [nioEventLoopGroup-120-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-120-1
05:23:55.360 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:55.375 [nioEventLoopGroup-116-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8358afe1, /127.0.0.1:46496 => /127.0.0.1:33951] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33951
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
05:23:55.376 [nioEventLoopGroup-116-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
05:23:55.376 [nioEventLoopGroup-116-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8358afe1, /127.0.0.1:46496 => /127.0.0.1:33951] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:55.376 [nioEventLoopGroup-116-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8358afe1, /127.0.0.1:46496 => /127.0.0.1:33951] FLUSH
05:23:55.376 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:55.376 [nioEventLoopGroup-116-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8358afe1, /127.0.0.1:46496 => /127.0.0.1:33951] FLUSH
05:23:55.377 [nioEventLoopGroup-116-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8358afe1, /127.0.0.1:46496 :> /127.0.0.1:33951] INACTIVE
05:23:55.377 [nioEventLoopGroup-116-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8358afe1, /127.0.0.1:46496 :> /127.0.0.1:33951] UNREGISTERED
05:23:55.377 [nioEventLoopGroup-121-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-121-1
05:23:55.378 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:55.380 [nioEventLoopGroup-116-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcefa1477, /127.0.0.1:46498 => /127.0.0.1:33951] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33951
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
05:23:55.381 [nioEventLoopGroup-116-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
05:23:55.381 [nioEventLoopGroup-116-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcefa1477, /127.0.0.1:46498 => /127.0.0.1:33951] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:55.381 [nioEventLoopGroup-116-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcefa1477, /127.0.0.1:46498 => /127.0.0.1:33951] FLUSH
05:23:55.381 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:55.381 [nioEventLoopGroup-116-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcefa1477, /127.0.0.1:46498 => /127.0.0.1:33951] FLUSH
05:23:55.381 [nioEventLoopGroup-116-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcefa1477, /127.0.0.1:46498 :> /127.0.0.1:33951] INACTIVE
05:23:55.381 [nioEventLoopGroup-116-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcefa1477, /127.0.0.1:46498 :> /127.0.0.1:33951] UNREGISTERED
05:23:55.381 [nioEventLoopGroup-122-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-122-1
05:23:55.382 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:55.384 [nioEventLoopGroup-116-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3debd66e, /127.0.0.1:46500 => /127.0.0.1:33951] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33951
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:23:55.384 [nioEventLoopGroup-116-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
05:23:55.385 [nioEventLoopGroup-116-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3debd66e, /127.0.0.1:46500 => /127.0.0.1:33951] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:55.385 [nioEventLoopGroup-116-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3debd66e, /127.0.0.1:46500 => /127.0.0.1:33951] FLUSH
05:23:55.385 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:55.385 [nioEventLoopGroup-116-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3debd66e, /127.0.0.1:46500 => /127.0.0.1:33951] FLUSH
05:23:55.385 [nioEventLoopGroup-116-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3debd66e, /127.0.0.1:46500 :> /127.0.0.1:33951] INACTIVE
05:23:55.385 [nioEventLoopGroup-116-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3debd66e, /127.0.0.1:46500 :> /127.0.0.1:33951] UNREGISTERED
05:23:55.385 [nioEventLoopGroup-123-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-123-1
05:23:55.386 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:55.388 [nioEventLoopGroup-116-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x123dbd5f, /127.0.0.1:46502 => /127.0.0.1:33951] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33951
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:55.388 [nioEventLoopGroup-116-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
05:23:55.389 [nioEventLoopGroup-116-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x123dbd5f, /127.0.0.1:46502 => /127.0.0.1:33951] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:55.389 [nioEventLoopGroup-116-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x123dbd5f, /127.0.0.1:46502 => /127.0.0.1:33951] FLUSH
05:23:55.389 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:55.389 [nioEventLoopGroup-116-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x123dbd5f, /127.0.0.1:46502 => /127.0.0.1:33951] FLUSH
05:23:55.389 [nioEventLoopGroup-116-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x123dbd5f, /127.0.0.1:46502 :> /127.0.0.1:33951] INACTIVE
05:23:55.389 [nioEventLoopGroup-116-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x123dbd5f, /127.0.0.1:46502 :> /127.0.0.1:33951] UNREGISTERED
05:23:55.389 [nioEventLoopGroup-124-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-124-1
05:23:55.390 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:55.392 [nioEventLoopGroup-116-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x42665c4c, /127.0.0.1:46504 => /127.0.0.1:33951] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33951
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:55.393 [nioEventLoopGroup-116-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
05:23:55.393 [nioEventLoopGroup-116-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x42665c4c, /127.0.0.1:46504 => /127.0.0.1:33951] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:55.393 [nioEventLoopGroup-116-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x42665c4c, /127.0.0.1:46504 => /127.0.0.1:33951] FLUSH
05:23:55.393 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:55.393 [nioEventLoopGroup-116-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x42665c4c, /127.0.0.1:46504 => /127.0.0.1:33951] FLUSH
05:23:55.393 [nioEventLoopGroup-116-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x42665c4c, /127.0.0.1:46504 :> /127.0.0.1:33951] INACTIVE
05:23:55.393 [nioEventLoopGroup-116-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x42665c4c, /127.0.0.1:46504 :> /127.0.0.1:33951] UNREGISTERED
05:23:55.393 [nioEventLoopGroup-125-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-125-1
05:23:55.394 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:55.396 [nioEventLoopGroup-116-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc072809, /127.0.0.1:46506 => /127.0.0.1:33951] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33951
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:55.397 [nioEventLoopGroup-116-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
05:23:55.397 [nioEventLoopGroup-116-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc072809, /127.0.0.1:46506 => /127.0.0.1:33951] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:55.397 [nioEventLoopGroup-116-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc072809, /127.0.0.1:46506 => /127.0.0.1:33951] FLUSH
05:23:55.397 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:55.398 [nioEventLoopGroup-116-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc072809, /127.0.0.1:46506 => /127.0.0.1:33951] FLUSH
05:23:55.398 [nioEventLoopGroup-116-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc072809, /127.0.0.1:46506 :> /127.0.0.1:33951] INACTIVE
05:23:55.398 [nioEventLoopGroup-116-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc072809, /127.0.0.1:46506 :> /127.0.0.1:33951] UNREGISTERED
05:23:55.398 [nioEventLoopGroup-126-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-126-1
05:23:55.399 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:55.401 [nioEventLoopGroup-116-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf8862156, /127.0.0.1:46510 => /127.0.0.1:33951] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33951
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:55.402 [nioEventLoopGroup-116-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
05:23:55.402 [nioEventLoopGroup-116-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf8862156, /127.0.0.1:46510 => /127.0.0.1:33951] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:55.403 [nioEventLoopGroup-116-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf8862156, /127.0.0.1:46510 => /127.0.0.1:33951] FLUSH
05:23:55.404 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:55.404 [nioEventLoopGroup-116-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf8862156, /127.0.0.1:46510 => /127.0.0.1:33951] FLUSH
05:23:55.404 [nioEventLoopGroup-116-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf8862156, /127.0.0.1:46510 :> /127.0.0.1:33951] INACTIVE
05:23:55.404 [nioEventLoopGroup-116-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf8862156, /127.0.0.1:46510 :> /127.0.0.1:33951] UNREGISTERED
05:23:55.404 [nioEventLoopGroup-127-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-127-1
05:23:55.405 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:55.407 [nioEventLoopGroup-116-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe8e52c49, /127.0.0.1:46512 => /127.0.0.1:33951] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33951
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:55.408 [nioEventLoopGroup-116-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
05:23:55.408 [nioEventLoopGroup-116-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe8e52c49, /127.0.0.1:46512 => /127.0.0.1:33951] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:55.408 [nioEventLoopGroup-116-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe8e52c49, /127.0.0.1:46512 => /127.0.0.1:33951] FLUSH
05:23:55.409 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:55.409 [nioEventLoopGroup-116-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe8e52c49, /127.0.0.1:46512 => /127.0.0.1:33951] FLUSH
05:23:55.409 [nioEventLoopGroup-116-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe8e52c49, /127.0.0.1:46512 :> /127.0.0.1:33951] INACTIVE
05:23:55.409 [nioEventLoopGroup-116-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe8e52c49, /127.0.0.1:46512 :> /127.0.0.1:33951] UNREGISTERED
05:23:55.409 [nioEventLoopGroup-128-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-128-1
05:23:55.411 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:55.415 [nioEventLoopGroup-116-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc8b7837, /127.0.0.1:46514 => /127.0.0.1:33951] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33951
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:55.416 [nioEventLoopGroup-116-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:23:55.417 [nioEventLoopGroup-116-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc8b7837, /127.0.0.1:46514 => /127.0.0.1:33951] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:55.417 [nioEventLoopGroup-116-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc8b7837, /127.0.0.1:46514 => /127.0.0.1:33951] FLUSH
05:23:55.417 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:55.417 [nioEventLoopGroup-116-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc8b7837, /127.0.0.1:46514 => /127.0.0.1:33951] FLUSH
05:23:55.417 [nioEventLoopGroup-129-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-129-1
05:23:55.418 [nioEventLoopGroup-116-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc8b7837, /127.0.0.1:46514 :> /127.0.0.1:33951] INACTIVE
05:23:55.418 [nioEventLoopGroup-116-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc8b7837, /127.0.0.1:46514 :> /127.0.0.1:33951] UNREGISTERED
05:23:55.419 [nioEventLoopGroup-116-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x76dbe646, /127.0.0.1:46516 => /127.0.0.1:33951] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status500 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_102
Host: localhost:33951
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
05:23:55.420 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:33951" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:55.420 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:33951" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:55.420 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:33951" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:23:55.420 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:33951" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:55.421 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:33951" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:55.421 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:33951" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:55.421 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:33951" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:55.421 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:33951" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:55.422 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:33951" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:55.422 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:33951" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:55.422 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:33951" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status500"
}
05:23:55.423 [nioEventLoopGroup-116-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 500
}
for request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:33951" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:23:55.423 [nioEventLoopGroup-116-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x76dbe646, /127.0.0.1:46516 => /127.0.0.1:33951] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 500 Internal Server Error
Content-Length: 0
Connection: keep-alive, 0B
05:23:55.423 [nioEventLoopGroup-116-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x76dbe646, /127.0.0.1:46516 => /127.0.0.1:33951] FLUSH
05:23:55.426 [nioEventLoopGroup-116-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x76dbe646, /127.0.0.1:46516 => /127.0.0.1:33951] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status500 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_102
Host: localhost:33951
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
05:23:55.427 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:33951" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:55.428 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:33951" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:55.428 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:33951" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:23:55.428 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:33951" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:55.428 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:33951" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:55.428 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:33951" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:55.429 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:33951" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:55.429 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:33951" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:55.429 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:33951" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:55.429 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:33951" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:55.429 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:33951" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status500"
}
05:23:55.430 [nioEventLoopGroup-116-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 500
}
for request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:33951" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:23:55.430 [nioEventLoopGroup-116-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x76dbe646, /127.0.0.1:46516 => /127.0.0.1:33951] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 500 Internal Server Error
Content-Length: 0
Connection: keep-alive, 0B
05:23:55.430 [nioEventLoopGroup-116-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x76dbe646, /127.0.0.1:46516 => /127.0.0.1:33951] FLUSH
05:23:55.431 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
05:23:55.433 [nioEventLoopGroup-116-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa0b2fa41, /127.0.0.1:46522 => /127.0.0.1:33951] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:33951
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
05:23:55.433 [nioEventLoopGroup-116-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa0b2fa41, /127.0.0.1:46522 => /127.0.0.1:33951] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:55.433 [nioEventLoopGroup-116-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa0b2fa41, /127.0.0.1:46522 => /127.0.0.1:33951] FLUSH
05:23:55.433 [nioEventLoopGroup-116-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa0b2fa41, /127.0.0.1:46522 => /127.0.0.1:33951] CLOSE()
05:23:55.433 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:55.434 [nioEventLoopGroup-130-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-130-1
05:23:55.437 [nioEventLoopGroup-116-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-1
05:23:55.437 [nioEventLoopGroup-116-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-10
05:23:55.437 [nioEventLoopGroup-116-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-2
05:23:55.437 [nioEventLoopGroup-116-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-3
05:23:55.437 [nioEventLoopGroup-116-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-9
05:23:55.437 [nioEventLoopGroup-116-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-5
05:23:55.437 [nioEventLoopGroup-116-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-4
05:23:55.437 [nioEventLoopGroup-116-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-13
05:23:55.437 [nioEventLoopGroup-116-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-6
05:23:55.437 [nioEventLoopGroup-116-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-7
05:23:55.437 [nioEventLoopGroup-116-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-11
05:23:55.437 [nioEventLoopGroup-116-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-8
05:23:55.437 [nioEventLoopGroup-116-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x76dbe646, /127.0.0.1:46516 :> /127.0.0.1:33951] INACTIVE
05:23:55.437 [nioEventLoopGroup-116-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-12
05:23:55.438 [nioEventLoopGroup-116-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x76dbe646, /127.0.0.1:46516 :> /127.0.0.1:33951] UNREGISTERED
05:23:55.487 [nioEventLoopGroup-100-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3943f06c, /127.0.0.1:33796 :> /127.0.0.1:38055] FLUSH
05:23:55.487 [nioEventLoopGroup-100-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3943f06c, /127.0.0.1:33796 :> /127.0.0.1:38055] INACTIVE
05:23:55.487 [nioEventLoopGroup-100-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3943f06c, /127.0.0.1:33796 :> /127.0.0.1:38055] UNREGISTERED
05:23:55.487 [nioEventLoopGroup-100-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-15
05:23:55.500 [nioEventLoopGroup-84-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-14
05:23:55.787 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:55.787 [MockServer thread for port: 33803] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 33803
05:23:55.789 [nioEventLoopGroup-132-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x665cff06, /127.0.0.1:40096 => /127.0.0.1:33803] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33803
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:55.790 [nioEventLoopGroup-132-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:23:55.790 [nioEventLoopGroup-132-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x665cff06, /127.0.0.1:40096 => /127.0.0.1:33803] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:55.790 [nioEventLoopGroup-132-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x665cff06, /127.0.0.1:40096 => /127.0.0.1:33803] FLUSH
05:23:55.791 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:55.791 [nioEventLoopGroup-132-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x665cff06, /127.0.0.1:40096 => /127.0.0.1:33803] FLUSH
05:23:55.791 [nioEventLoopGroup-133-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-133-1
05:23:55.791 [nioEventLoopGroup-132-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x665cff06, /127.0.0.1:40096 :> /127.0.0.1:33803] INACTIVE
05:23:55.791 [nioEventLoopGroup-132-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x665cff06, /127.0.0.1:40096 :> /127.0.0.1:33803] UNREGISTERED
05:23:55.792 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:55.795 [nioEventLoopGroup-132-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe0f4a4c8, /127.0.0.1:40098 => /127.0.0.1:33803] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33803
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
05:23:55.796 [nioEventLoopGroup-132-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
05:23:55.796 [nioEventLoopGroup-132-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe0f4a4c8, /127.0.0.1:40098 => /127.0.0.1:33803] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:55.796 [nioEventLoopGroup-132-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe0f4a4c8, /127.0.0.1:40098 => /127.0.0.1:33803] FLUSH
05:23:55.796 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:55.797 [nioEventLoopGroup-132-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe0f4a4c8, /127.0.0.1:40098 => /127.0.0.1:33803] FLUSH
05:23:55.797 [nioEventLoopGroup-132-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe0f4a4c8, /127.0.0.1:40098 :> /127.0.0.1:33803] INACTIVE
05:23:55.797 [nioEventLoopGroup-132-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe0f4a4c8, /127.0.0.1:40098 :> /127.0.0.1:33803] UNREGISTERED
05:23:55.797 [nioEventLoopGroup-134-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-134-1
05:23:55.798 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:55.803 [nioEventLoopGroup-132-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98ccfc9d, /127.0.0.1:40100 => /127.0.0.1:33803] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33803
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:23:55.806 [nioEventLoopGroup-132-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
05:23:55.807 [nioEventLoopGroup-132-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98ccfc9d, /127.0.0.1:40100 => /127.0.0.1:33803] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:55.807 [nioEventLoopGroup-132-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98ccfc9d, /127.0.0.1:40100 => /127.0.0.1:33803] FLUSH
05:23:55.811 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:55.811 [nioEventLoopGroup-132-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98ccfc9d, /127.0.0.1:40100 => /127.0.0.1:33803] FLUSH
05:23:55.811 [nioEventLoopGroup-135-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-135-1
05:23:55.811 [nioEventLoopGroup-132-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98ccfc9d, /127.0.0.1:40100 :> /127.0.0.1:33803] INACTIVE
05:23:55.814 [nioEventLoopGroup-132-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98ccfc9d, /127.0.0.1:40100 :> /127.0.0.1:33803] UNREGISTERED
05:23:55.817 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:55.819 [nioEventLoopGroup-132-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe85b54a, /127.0.0.1:40102 => /127.0.0.1:33803] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33803
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:55.819 [nioEventLoopGroup-132-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:23:55.820 [nioEventLoopGroup-132-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe85b54a, /127.0.0.1:40102 => /127.0.0.1:33803] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:55.820 [nioEventLoopGroup-132-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe85b54a, /127.0.0.1:40102 => /127.0.0.1:33803] FLUSH
05:23:55.820 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:55.820 [nioEventLoopGroup-132-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe85b54a, /127.0.0.1:40102 => /127.0.0.1:33803] FLUSH
05:23:55.820 [nioEventLoopGroup-132-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe85b54a, /127.0.0.1:40102 :> /127.0.0.1:33803] INACTIVE
05:23:55.820 [nioEventLoopGroup-132-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe85b54a, /127.0.0.1:40102 :> /127.0.0.1:33803] UNREGISTERED
05:23:55.820 [nioEventLoopGroup-136-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-136-1
05:23:55.821 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:55.823 [nioEventLoopGroup-132-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9aad66ca, /127.0.0.1:40104 => /127.0.0.1:33803] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33803
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
05:23:55.824 [nioEventLoopGroup-132-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
05:23:55.824 [nioEventLoopGroup-132-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9aad66ca, /127.0.0.1:40104 => /127.0.0.1:33803] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:55.824 [nioEventLoopGroup-132-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9aad66ca, /127.0.0.1:40104 => /127.0.0.1:33803] FLUSH
05:23:55.825 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:55.825 [nioEventLoopGroup-132-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9aad66ca, /127.0.0.1:40104 => /127.0.0.1:33803] FLUSH
05:23:55.825 [nioEventLoopGroup-132-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9aad66ca, /127.0.0.1:40104 :> /127.0.0.1:33803] INACTIVE
05:23:55.825 [nioEventLoopGroup-132-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9aad66ca, /127.0.0.1:40104 :> /127.0.0.1:33803] UNREGISTERED
05:23:55.825 [nioEventLoopGroup-137-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-137-1
05:23:55.828 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:55.830 [nioEventLoopGroup-132-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1e3fdebd, /127.0.0.1:40106 => /127.0.0.1:33803] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33803
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
05:23:55.831 [nioEventLoopGroup-132-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
05:23:55.831 [nioEventLoopGroup-132-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1e3fdebd, /127.0.0.1:40106 => /127.0.0.1:33803] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:55.831 [nioEventLoopGroup-132-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1e3fdebd, /127.0.0.1:40106 => /127.0.0.1:33803] FLUSH
05:23:55.831 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:55.831 [nioEventLoopGroup-132-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1e3fdebd, /127.0.0.1:40106 => /127.0.0.1:33803] FLUSH
05:23:55.832 [nioEventLoopGroup-132-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1e3fdebd, /127.0.0.1:40106 :> /127.0.0.1:33803] INACTIVE
05:23:55.832 [nioEventLoopGroup-132-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1e3fdebd, /127.0.0.1:40106 :> /127.0.0.1:33803] UNREGISTERED
05:23:55.832 [nioEventLoopGroup-138-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-138-1
05:23:55.832 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:55.835 [nioEventLoopGroup-132-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4a5be60e, /127.0.0.1:40108 => /127.0.0.1:33803] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33803
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:23:55.835 [nioEventLoopGroup-132-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
05:23:55.835 [nioEventLoopGroup-132-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4a5be60e, /127.0.0.1:40108 => /127.0.0.1:33803] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:55.836 [nioEventLoopGroup-132-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4a5be60e, /127.0.0.1:40108 => /127.0.0.1:33803] FLUSH
05:23:55.836 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:55.836 [nioEventLoopGroup-132-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4a5be60e, /127.0.0.1:40108 => /127.0.0.1:33803] FLUSH
05:23:55.836 [nioEventLoopGroup-139-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-139-1
05:23:55.836 [nioEventLoopGroup-132-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4a5be60e, /127.0.0.1:40108 :> /127.0.0.1:33803] INACTIVE
05:23:55.836 [nioEventLoopGroup-132-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4a5be60e, /127.0.0.1:40108 :> /127.0.0.1:33803] UNREGISTERED
05:23:55.838 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:55.840 [nioEventLoopGroup-132-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0055cf5a, /127.0.0.1:40110 => /127.0.0.1:33803] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33803
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:55.841 [nioEventLoopGroup-132-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
05:23:55.841 [nioEventLoopGroup-132-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0055cf5a, /127.0.0.1:40110 => /127.0.0.1:33803] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:55.842 [nioEventLoopGroup-132-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0055cf5a, /127.0.0.1:40110 => /127.0.0.1:33803] FLUSH
05:23:55.842 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:55.842 [nioEventLoopGroup-132-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0055cf5a, /127.0.0.1:40110 => /127.0.0.1:33803] FLUSH
05:23:55.842 [nioEventLoopGroup-132-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0055cf5a, /127.0.0.1:40110 :> /127.0.0.1:33803] INACTIVE
05:23:55.842 [nioEventLoopGroup-132-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0055cf5a, /127.0.0.1:40110 :> /127.0.0.1:33803] UNREGISTERED
05:23:55.842 [nioEventLoopGroup-140-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-140-1
05:23:55.843 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:55.846 [nioEventLoopGroup-132-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa8fbcd3, /127.0.0.1:40112 => /127.0.0.1:33803] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33803
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:55.847 [nioEventLoopGroup-132-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
05:23:55.847 [nioEventLoopGroup-132-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa8fbcd3, /127.0.0.1:40112 => /127.0.0.1:33803] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:55.848 [nioEventLoopGroup-132-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa8fbcd3, /127.0.0.1:40112 => /127.0.0.1:33803] FLUSH
05:23:55.849 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:55.849 [nioEventLoopGroup-132-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa8fbcd3, /127.0.0.1:40112 => /127.0.0.1:33803] FLUSH
05:23:55.849 [nioEventLoopGroup-132-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa8fbcd3, /127.0.0.1:40112 :> /127.0.0.1:33803] INACTIVE
05:23:55.849 [nioEventLoopGroup-132-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa8fbcd3, /127.0.0.1:40112 :> /127.0.0.1:33803] UNREGISTERED
05:23:55.850 [nioEventLoopGroup-141-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-141-1
05:23:55.850 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:55.853 [nioEventLoopGroup-132-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1d755db7, /127.0.0.1:40114 => /127.0.0.1:33803] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33803
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:55.854 [nioEventLoopGroup-132-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
05:23:55.854 [nioEventLoopGroup-132-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1d755db7, /127.0.0.1:40114 => /127.0.0.1:33803] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:55.854 [nioEventLoopGroup-132-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1d755db7, /127.0.0.1:40114 => /127.0.0.1:33803] FLUSH
05:23:55.854 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:55.854 [nioEventLoopGroup-132-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1d755db7, /127.0.0.1:40114 => /127.0.0.1:33803] FLUSH
05:23:55.854 [nioEventLoopGroup-132-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1d755db7, /127.0.0.1:40114 :> /127.0.0.1:33803] INACTIVE
05:23:55.855 [nioEventLoopGroup-132-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1d755db7, /127.0.0.1:40114 :> /127.0.0.1:33803] UNREGISTERED
05:23:55.855 [nioEventLoopGroup-142-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-142-1
05:23:55.863 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:55.870 [nioEventLoopGroup-132-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1a8f369c, /127.0.0.1:40116 => /127.0.0.1:33803] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33803
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:55.871 [nioEventLoopGroup-132-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
05:23:55.871 [nioEventLoopGroup-132-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1a8f369c, /127.0.0.1:40116 => /127.0.0.1:33803] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:55.871 [nioEventLoopGroup-132-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1a8f369c, /127.0.0.1:40116 => /127.0.0.1:33803] FLUSH
05:23:55.871 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:55.872 [nioEventLoopGroup-132-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1a8f369c, /127.0.0.1:40116 => /127.0.0.1:33803] FLUSH
05:23:55.872 [nioEventLoopGroup-132-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1a8f369c, /127.0.0.1:40116 :> /127.0.0.1:33803] INACTIVE
05:23:55.872 [nioEventLoopGroup-143-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-143-1
05:23:55.872 [nioEventLoopGroup-132-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1a8f369c, /127.0.0.1:40116 :> /127.0.0.1:33803] UNREGISTERED
05:23:55.874 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:55.877 [nioEventLoopGroup-132-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0e8a2d14, /127.0.0.1:40118 => /127.0.0.1:33803] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33803
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:55.880 [nioEventLoopGroup-132-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
05:23:55.881 [nioEventLoopGroup-132-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0e8a2d14, /127.0.0.1:40118 => /127.0.0.1:33803] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:55.881 [nioEventLoopGroup-132-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0e8a2d14, /127.0.0.1:40118 => /127.0.0.1:33803] FLUSH
05:23:55.882 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:55.882 [nioEventLoopGroup-132-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0e8a2d14, /127.0.0.1:40118 => /127.0.0.1:33803] FLUSH
05:23:55.882 [nioEventLoopGroup-132-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0e8a2d14, /127.0.0.1:40118 :> /127.0.0.1:33803] INACTIVE
05:23:55.882 [nioEventLoopGroup-144-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-144-1
05:23:55.883 [nioEventLoopGroup-132-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0e8a2d14, /127.0.0.1:40118 :> /127.0.0.1:33803] UNREGISTERED
05:23:55.883 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:55.886 [nioEventLoopGroup-132-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2ef0567c, /127.0.0.1:40120 => /127.0.0.1:33803] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33803
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:55.887 [nioEventLoopGroup-132-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:23:55.888 [nioEventLoopGroup-132-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2ef0567c, /127.0.0.1:40120 => /127.0.0.1:33803] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:55.888 [nioEventLoopGroup-132-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2ef0567c, /127.0.0.1:40120 => /127.0.0.1:33803] FLUSH
05:23:55.888 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:55.888 [nioEventLoopGroup-132-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2ef0567c, /127.0.0.1:40120 => /127.0.0.1:33803] FLUSH
05:23:55.888 [nioEventLoopGroup-132-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2ef0567c, /127.0.0.1:40120 :> /127.0.0.1:33803] INACTIVE
05:23:55.888 [nioEventLoopGroup-145-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-145-1
05:23:55.889 [nioEventLoopGroup-132-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2ef0567c, /127.0.0.1:40120 :> /127.0.0.1:33803] UNREGISTERED
05:23:55.899 [nioEventLoopGroup-132-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf615c2f4, /127.0.0.1:40122 => /127.0.0.1:33803] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status200 HTTP/1.1
Host: localhost:33803
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_102)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
05:23:55.899 [nioEventLoopGroup-132-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33803" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:55.900 [nioEventLoopGroup-132-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33803" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:55.900 [nioEventLoopGroup-132-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33803" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:23:55.900 [nioEventLoopGroup-132-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33803" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:55.900 [nioEventLoopGroup-132-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33803" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:55.901 [nioEventLoopGroup-132-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33803" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:55.901 [nioEventLoopGroup-132-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33803" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:55.901 [nioEventLoopGroup-132-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33803" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status200"
}
05:23:55.901 [nioEventLoopGroup-132-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200
}
for request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33803" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:23:55.902 [nioEventLoopGroup-132-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf615c2f4, /127.0.0.1:40122 => /127.0.0.1:33803] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 200 OK
Content-Length: 0
Connection: keep-alive, 0B
05:23:55.902 [nioEventLoopGroup-132-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf615c2f4, /127.0.0.1:40122 => /127.0.0.1:33803] FLUSH
05:23:55.906 [nioEventLoopGroup-132-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7f1178cc, /127.0.0.1:40124 => /127.0.0.1:33803] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status200 HTTP/1.1
Host: localhost:33803
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_102)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
05:23:55.907 [nioEventLoopGroup-132-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33803" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:55.907 [nioEventLoopGroup-132-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33803" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:55.907 [nioEventLoopGroup-132-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33803" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:23:55.908 [nioEventLoopGroup-132-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33803" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:55.908 [nioEventLoopGroup-132-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33803" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:55.908 [nioEventLoopGroup-132-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33803" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:55.908 [nioEventLoopGroup-132-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33803" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:55.909 [nioEventLoopGroup-132-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33803" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status200"
}
05:23:55.909 [nioEventLoopGroup-132-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200
}
for request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33803" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:23:55.909 [nioEventLoopGroup-132-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7f1178cc, /127.0.0.1:40124 => /127.0.0.1:33803] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 200 OK
Content-Length: 0
Connection: keep-alive, 0B
05:23:55.909 [nioEventLoopGroup-132-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7f1178cc, /127.0.0.1:40124 => /127.0.0.1:33803] FLUSH
05:23:55.910 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
05:23:55.912 [nioEventLoopGroup-132-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb07ae1ef, /127.0.0.1:40126 => /127.0.0.1:33803] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:33803
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
05:23:55.912 [nioEventLoopGroup-132-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb07ae1ef, /127.0.0.1:40126 => /127.0.0.1:33803] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:55.913 [nioEventLoopGroup-132-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb07ae1ef, /127.0.0.1:40126 => /127.0.0.1:33803] FLUSH
05:23:55.913 [nioEventLoopGroup-132-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb07ae1ef, /127.0.0.1:40126 => /127.0.0.1:33803] CLOSE()
05:23:55.913 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:55.913 [nioEventLoopGroup-146-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-146-1
05:23:55.914 [nioEventLoopGroup-132-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-8
05:23:55.914 [nioEventLoopGroup-132-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-1
05:23:55.914 [nioEventLoopGroup-132-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-3
05:23:55.914 [nioEventLoopGroup-132-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-4
05:23:55.914 [nioEventLoopGroup-132-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-7
05:23:55.914 [nioEventLoopGroup-132-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-6
05:23:55.914 [nioEventLoopGroup-132-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-2
05:23:55.914 [nioEventLoopGroup-132-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-5
05:23:55.914 [nioEventLoopGroup-132-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7f1178cc, /127.0.0.1:40124 :> /127.0.0.1:33803] INACTIVE
05:23:55.914 [nioEventLoopGroup-132-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-9
05:23:55.914 [nioEventLoopGroup-132-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-11
05:23:55.914 [nioEventLoopGroup-132-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-10
05:23:55.914 [nioEventLoopGroup-132-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-12
05:23:55.914 [nioEventLoopGroup-132-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-13
05:23:55.915 [nioEventLoopGroup-132-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf615c2f4, /127.0.0.1:40122 :> /127.0.0.1:33803] INACTIVE
05:23:55.915 [nioEventLoopGroup-132-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7f1178cc, /127.0.0.1:40124 :> /127.0.0.1:33803] UNREGISTERED
05:23:55.926 [nioEventLoopGroup-132-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf615c2f4, /127.0.0.1:40122 :> /127.0.0.1:33803] UNREGISTERED
05:23:55.938 [nioEventLoopGroup-116-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa0b2fa41, /127.0.0.1:46522 :> /127.0.0.1:33951] FLUSH
05:23:55.938 [nioEventLoopGroup-116-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa0b2fa41, /127.0.0.1:46522 :> /127.0.0.1:33951] INACTIVE
05:23:55.938 [nioEventLoopGroup-116-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa0b2fa41, /127.0.0.1:46522 :> /127.0.0.1:33951] UNREGISTERED
05:23:55.938 [nioEventLoopGroup-116-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-15
05:23:55.988 [nioEventLoopGroup-100-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-14
05:23:56.279 [MockServer thread for port: 42825] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 42825
05:23:56.279 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:56.291 [nioEventLoopGroup-148-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6a24731f, /127.0.0.1:36394 => /127.0.0.1:42825] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42825
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:56.292 [nioEventLoopGroup-148-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:23:56.293 [nioEventLoopGroup-148-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6a24731f, /127.0.0.1:36394 => /127.0.0.1:42825] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:56.293 [nioEventLoopGroup-148-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6a24731f, /127.0.0.1:36394 => /127.0.0.1:42825] FLUSH
05:23:56.293 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:56.294 [nioEventLoopGroup-149-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-149-1
05:23:56.294 [nioEventLoopGroup-148-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6a24731f, /127.0.0.1:36394 => /127.0.0.1:42825] FLUSH
05:23:56.294 [nioEventLoopGroup-148-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6a24731f, /127.0.0.1:36394 :> /127.0.0.1:42825] INACTIVE
05:23:56.294 [nioEventLoopGroup-148-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6a24731f, /127.0.0.1:36394 :> /127.0.0.1:42825] UNREGISTERED
05:23:56.299 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:56.305 [nioEventLoopGroup-148-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad2581ce, /127.0.0.1:36396 => /127.0.0.1:42825] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42825
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
05:23:56.307 [nioEventLoopGroup-148-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
05:23:56.307 [nioEventLoopGroup-148-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad2581ce, /127.0.0.1:36396 => /127.0.0.1:42825] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:56.307 [nioEventLoopGroup-148-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad2581ce, /127.0.0.1:36396 => /127.0.0.1:42825] FLUSH
05:23:56.308 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:56.308 [nioEventLoopGroup-148-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad2581ce, /127.0.0.1:36396 => /127.0.0.1:42825] FLUSH
05:23:56.308 [nioEventLoopGroup-148-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad2581ce, /127.0.0.1:36396 :> /127.0.0.1:42825] INACTIVE
05:23:56.308 [nioEventLoopGroup-150-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-150-1
05:23:56.308 [nioEventLoopGroup-148-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad2581ce, /127.0.0.1:36396 :> /127.0.0.1:42825] UNREGISTERED
05:23:56.309 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:56.312 [nioEventLoopGroup-148-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x77019694, /127.0.0.1:36398 => /127.0.0.1:42825] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42825
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:23:56.313 [nioEventLoopGroup-148-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
05:23:56.313 [nioEventLoopGroup-148-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x77019694, /127.0.0.1:36398 => /127.0.0.1:42825] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:56.314 [nioEventLoopGroup-148-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x77019694, /127.0.0.1:36398 => /127.0.0.1:42825] FLUSH
05:23:56.314 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:56.314 [nioEventLoopGroup-148-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x77019694, /127.0.0.1:36398 => /127.0.0.1:42825] FLUSH
05:23:56.314 [nioEventLoopGroup-148-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x77019694, /127.0.0.1:36398 :> /127.0.0.1:42825] INACTIVE
05:23:56.314 [nioEventLoopGroup-148-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x77019694, /127.0.0.1:36398 :> /127.0.0.1:42825] UNREGISTERED
05:23:56.314 [nioEventLoopGroup-151-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-151-1
05:23:56.315 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:56.317 [nioEventLoopGroup-148-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1e177dbe, /127.0.0.1:36400 => /127.0.0.1:42825] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42825
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:56.317 [nioEventLoopGroup-148-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:23:56.318 [nioEventLoopGroup-148-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1e177dbe, /127.0.0.1:36400 => /127.0.0.1:42825] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:56.318 [nioEventLoopGroup-148-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1e177dbe, /127.0.0.1:36400 => /127.0.0.1:42825] FLUSH
05:23:56.318 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:56.318 [nioEventLoopGroup-148-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1e177dbe, /127.0.0.1:36400 => /127.0.0.1:42825] FLUSH
05:23:56.318 [nioEventLoopGroup-148-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1e177dbe, /127.0.0.1:36400 :> /127.0.0.1:42825] INACTIVE
05:23:56.318 [nioEventLoopGroup-148-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1e177dbe, /127.0.0.1:36400 :> /127.0.0.1:42825] UNREGISTERED
05:23:56.318 [nioEventLoopGroup-152-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-152-1
05:23:56.323 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:56.324 [nioEventLoopGroup-148-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x35416bb5, /127.0.0.1:36402 => /127.0.0.1:42825] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42825
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
05:23:56.325 [nioEventLoopGroup-148-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
05:23:56.325 [nioEventLoopGroup-148-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x35416bb5, /127.0.0.1:36402 => /127.0.0.1:42825] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:56.325 [nioEventLoopGroup-148-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x35416bb5, /127.0.0.1:36402 => /127.0.0.1:42825] FLUSH
05:23:56.326 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:56.326 [nioEventLoopGroup-148-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x35416bb5, /127.0.0.1:36402 => /127.0.0.1:42825] FLUSH
05:23:56.326 [nioEventLoopGroup-148-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x35416bb5, /127.0.0.1:36402 :> /127.0.0.1:42825] INACTIVE
05:23:56.326 [nioEventLoopGroup-148-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x35416bb5, /127.0.0.1:36402 :> /127.0.0.1:42825] UNREGISTERED
05:23:56.327 [nioEventLoopGroup-153-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-153-1
05:23:56.327 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:56.329 [nioEventLoopGroup-148-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x255deed9, /127.0.0.1:36404 => /127.0.0.1:42825] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42825
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
05:23:56.330 [nioEventLoopGroup-148-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
05:23:56.331 [nioEventLoopGroup-148-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x255deed9, /127.0.0.1:36404 => /127.0.0.1:42825] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:56.331 [nioEventLoopGroup-148-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x255deed9, /127.0.0.1:36404 => /127.0.0.1:42825] FLUSH
05:23:56.331 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:56.331 [nioEventLoopGroup-148-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x255deed9, /127.0.0.1:36404 => /127.0.0.1:42825] FLUSH
05:23:56.331 [nioEventLoopGroup-148-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x255deed9, /127.0.0.1:36404 :> /127.0.0.1:42825] INACTIVE
05:23:56.331 [nioEventLoopGroup-148-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x255deed9, /127.0.0.1:36404 :> /127.0.0.1:42825] UNREGISTERED
05:23:56.332 [nioEventLoopGroup-154-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-154-1
05:23:56.332 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:56.334 [nioEventLoopGroup-148-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x81a99798, /127.0.0.1:36406 => /127.0.0.1:42825] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42825
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:23:56.335 [nioEventLoopGroup-148-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
05:23:56.335 [nioEventLoopGroup-148-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x81a99798, /127.0.0.1:36406 => /127.0.0.1:42825] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:56.335 [nioEventLoopGroup-148-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x81a99798, /127.0.0.1:36406 => /127.0.0.1:42825] FLUSH
05:23:56.335 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:56.335 [nioEventLoopGroup-148-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x81a99798, /127.0.0.1:36406 => /127.0.0.1:42825] FLUSH
05:23:56.335 [nioEventLoopGroup-148-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x81a99798, /127.0.0.1:36406 :> /127.0.0.1:42825] INACTIVE
05:23:56.335 [nioEventLoopGroup-148-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x81a99798, /127.0.0.1:36406 :> /127.0.0.1:42825] UNREGISTERED
05:23:56.336 [nioEventLoopGroup-155-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-155-1
05:23:56.337 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:56.339 [nioEventLoopGroup-148-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2f31eb36, /127.0.0.1:36408 => /127.0.0.1:42825] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42825
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:56.340 [nioEventLoopGroup-148-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
05:23:56.340 [nioEventLoopGroup-148-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2f31eb36, /127.0.0.1:36408 => /127.0.0.1:42825] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:56.340 [nioEventLoopGroup-148-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2f31eb36, /127.0.0.1:36408 => /127.0.0.1:42825] FLUSH
05:23:56.340 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:56.340 [nioEventLoopGroup-148-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2f31eb36, /127.0.0.1:36408 => /127.0.0.1:42825] FLUSH
05:23:56.340 [nioEventLoopGroup-148-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2f31eb36, /127.0.0.1:36408 :> /127.0.0.1:42825] INACTIVE
05:23:56.340 [nioEventLoopGroup-148-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2f31eb36, /127.0.0.1:36408 :> /127.0.0.1:42825] UNREGISTERED
05:23:56.340 [nioEventLoopGroup-156-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-156-1
05:23:56.341 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:56.343 [nioEventLoopGroup-148-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf1f28fd8, /127.0.0.1:36410 => /127.0.0.1:42825] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42825
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:56.344 [nioEventLoopGroup-148-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
05:23:56.344 [nioEventLoopGroup-148-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf1f28fd8, /127.0.0.1:36410 => /127.0.0.1:42825] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:56.344 [nioEventLoopGroup-148-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf1f28fd8, /127.0.0.1:36410 => /127.0.0.1:42825] FLUSH
05:23:56.345 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:56.345 [nioEventLoopGroup-148-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf1f28fd8, /127.0.0.1:36410 => /127.0.0.1:42825] FLUSH
05:23:56.345 [nioEventLoopGroup-148-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf1f28fd8, /127.0.0.1:36410 :> /127.0.0.1:42825] INACTIVE
05:23:56.345 [nioEventLoopGroup-148-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf1f28fd8, /127.0.0.1:36410 :> /127.0.0.1:42825] UNREGISTERED
05:23:56.346 [nioEventLoopGroup-157-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-157-1
05:23:56.347 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:56.349 [nioEventLoopGroup-148-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc56124d9, /127.0.0.1:36412 => /127.0.0.1:42825] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42825
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:56.350 [nioEventLoopGroup-148-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
05:23:56.350 [nioEventLoopGroup-148-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc56124d9, /127.0.0.1:36412 => /127.0.0.1:42825] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:56.350 [nioEventLoopGroup-148-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc56124d9, /127.0.0.1:36412 => /127.0.0.1:42825] FLUSH
05:23:56.351 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:56.351 [nioEventLoopGroup-148-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc56124d9, /127.0.0.1:36412 => /127.0.0.1:42825] FLUSH
05:23:56.351 [nioEventLoopGroup-148-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc56124d9, /127.0.0.1:36412 :> /127.0.0.1:42825] INACTIVE
05:23:56.351 [nioEventLoopGroup-148-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc56124d9, /127.0.0.1:36412 :> /127.0.0.1:42825] UNREGISTERED
05:23:56.351 [nioEventLoopGroup-158-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-158-1
05:23:56.352 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:56.355 [nioEventLoopGroup-148-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa177f872, /127.0.0.1:36414 => /127.0.0.1:42825] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42825
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:56.363 [nioEventLoopGroup-148-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
05:23:56.363 [nioEventLoopGroup-148-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa177f872, /127.0.0.1:36414 => /127.0.0.1:42825] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:56.363 [nioEventLoopGroup-148-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa177f872, /127.0.0.1:36414 => /127.0.0.1:42825] FLUSH
05:23:56.364 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:56.364 [nioEventLoopGroup-159-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-159-1
05:23:56.364 [nioEventLoopGroup-148-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa177f872, /127.0.0.1:36414 => /127.0.0.1:42825] FLUSH
05:23:56.364 [nioEventLoopGroup-148-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa177f872, /127.0.0.1:36414 :> /127.0.0.1:42825] INACTIVE
05:23:56.365 [nioEventLoopGroup-148-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa177f872, /127.0.0.1:36414 :> /127.0.0.1:42825] UNREGISTERED
05:23:56.365 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:56.368 [nioEventLoopGroup-148-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeccf5434, /127.0.0.1:36416 => /127.0.0.1:42825] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42825
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:56.370 [nioEventLoopGroup-148-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
05:23:56.372 [nioEventLoopGroup-148-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeccf5434, /127.0.0.1:36416 => /127.0.0.1:42825] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:56.372 [nioEventLoopGroup-148-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeccf5434, /127.0.0.1:36416 => /127.0.0.1:42825] FLUSH
05:23:56.372 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:56.373 [nioEventLoopGroup-148-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeccf5434, /127.0.0.1:36416 => /127.0.0.1:42825] FLUSH
05:23:56.373 [nioEventLoopGroup-148-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeccf5434, /127.0.0.1:36416 :> /127.0.0.1:42825] INACTIVE
05:23:56.373 [nioEventLoopGroup-148-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeccf5434, /127.0.0.1:36416 :> /127.0.0.1:42825] UNREGISTERED
05:23:56.373 [nioEventLoopGroup-160-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-160-1
05:23:56.374 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:56.377 [nioEventLoopGroup-148-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5af67bef, /127.0.0.1:36418 => /127.0.0.1:42825] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42825
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:56.378 [nioEventLoopGroup-148-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:23:56.379 [nioEventLoopGroup-148-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5af67bef, /127.0.0.1:36418 => /127.0.0.1:42825] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:56.379 [nioEventLoopGroup-148-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5af67bef, /127.0.0.1:36418 => /127.0.0.1:42825] FLUSH
05:23:56.379 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:56.379 [nioEventLoopGroup-161-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-161-1
05:23:56.379 [nioEventLoopGroup-148-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5af67bef, /127.0.0.1:36418 => /127.0.0.1:42825] FLUSH
05:23:56.380 [nioEventLoopGroup-148-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5af67bef, /127.0.0.1:36418 :> /127.0.0.1:42825] INACTIVE
05:23:56.380 [nioEventLoopGroup-148-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5af67bef, /127.0.0.1:36418 :> /127.0.0.1:42825] UNREGISTERED
05:23:56.385 [nioEventLoopGroup-148-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0c4546f1, /127.0.0.1:36420 => /127.0.0.1:42825] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status300 HTTP/1.1
Host: localhost:42825
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_102)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
05:23:56.386 [nioEventLoopGroup-148-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42825" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:56.391 [nioEventLoopGroup-148-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42825" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:56.392 [nioEventLoopGroup-148-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42825" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:23:56.392 [nioEventLoopGroup-148-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42825" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:56.392 [nioEventLoopGroup-148-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42825" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:56.392 [nioEventLoopGroup-148-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42825" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:56.392 [nioEventLoopGroup-148-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42825" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:56.393 [nioEventLoopGroup-148-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42825" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:56.393 [nioEventLoopGroup-148-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42825" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status300"
}
05:23:56.393 [nioEventLoopGroup-148-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 300
}
for request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42825" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:23:56.393 [nioEventLoopGroup-148-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0c4546f1, /127.0.0.1:36420 => /127.0.0.1:42825] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 300 Multiple Choices
Content-Length: 0
Connection: keep-alive, 0B
05:23:56.393 [nioEventLoopGroup-148-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0c4546f1, /127.0.0.1:36420 => /127.0.0.1:42825] FLUSH
05:23:56.399 [nioEventLoopGroup-148-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb38c81c8, /127.0.0.1:36422 => /127.0.0.1:42825] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status300 HTTP/1.1
Host: localhost:42825
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_102)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
05:23:56.400 [nioEventLoopGroup-148-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42825" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:56.400 [nioEventLoopGroup-148-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42825" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:56.400 [nioEventLoopGroup-148-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42825" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:23:56.400 [nioEventLoopGroup-148-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42825" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:56.401 [nioEventLoopGroup-148-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42825" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:56.401 [nioEventLoopGroup-148-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42825" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:56.401 [nioEventLoopGroup-148-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42825" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:56.401 [nioEventLoopGroup-148-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42825" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:56.401 [nioEventLoopGroup-148-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42825" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status300"
}
05:23:56.402 [nioEventLoopGroup-148-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 300
}
for request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42825" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:23:56.402 [nioEventLoopGroup-148-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb38c81c8, /127.0.0.1:36422 => /127.0.0.1:42825] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 300 Multiple Choices
Content-Length: 0
Connection: keep-alive, 0B
05:23:56.402 [nioEventLoopGroup-148-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb38c81c8, /127.0.0.1:36422 => /127.0.0.1:42825] FLUSH
05:23:56.403 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
05:23:56.405 [nioEventLoopGroup-148-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbc5b96ee, /127.0.0.1:36424 => /127.0.0.1:42825] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:42825
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
05:23:56.405 [nioEventLoopGroup-148-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbc5b96ee, /127.0.0.1:36424 => /127.0.0.1:42825] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:56.405 [nioEventLoopGroup-148-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbc5b96ee, /127.0.0.1:36424 => /127.0.0.1:42825] FLUSH
05:23:56.405 [nioEventLoopGroup-148-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbc5b96ee, /127.0.0.1:36424 => /127.0.0.1:42825] CLOSE()
05:23:56.406 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:56.406 [nioEventLoopGroup-162-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-162-1
05:23:56.414 [nioEventLoopGroup-132-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb07ae1ef, /127.0.0.1:40126 :> /127.0.0.1:33803] FLUSH
05:23:56.414 [nioEventLoopGroup-132-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb07ae1ef, /127.0.0.1:40126 :> /127.0.0.1:33803] INACTIVE
05:23:56.414 [nioEventLoopGroup-132-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb07ae1ef, /127.0.0.1:40126 :> /127.0.0.1:33803] UNREGISTERED
05:23:56.415 [nioEventLoopGroup-148-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-9
05:23:56.415 [nioEventLoopGroup-148-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-3
05:23:56.415 [nioEventLoopGroup-148-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-4
05:23:56.415 [nioEventLoopGroup-148-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-12
05:23:56.415 [nioEventLoopGroup-148-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-6
05:23:56.415 [nioEventLoopGroup-132-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-16
05:23:56.415 [nioEventLoopGroup-148-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-5
05:23:56.415 [nioEventLoopGroup-148-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-1
05:23:56.415 [nioEventLoopGroup-148-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-10
05:23:56.415 [nioEventLoopGroup-148-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-7
05:23:56.415 [nioEventLoopGroup-148-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0c4546f1, /127.0.0.1:36420 :> /127.0.0.1:42825] INACTIVE
05:23:56.415 [nioEventLoopGroup-148-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-2
05:23:56.415 [nioEventLoopGroup-148-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-11
05:23:56.415 [nioEventLoopGroup-148-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-8
05:23:56.415 [nioEventLoopGroup-148-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-13
05:23:56.415 [nioEventLoopGroup-148-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb38c81c8, /127.0.0.1:36422 :> /127.0.0.1:42825] INACTIVE
05:23:56.416 [nioEventLoopGroup-148-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0c4546f1, /127.0.0.1:36420 :> /127.0.0.1:42825] UNREGISTERED
05:23:56.416 [nioEventLoopGroup-148-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb38c81c8, /127.0.0.1:36422 :> /127.0.0.1:42825] UNREGISTERED
05:23:56.440 [nioEventLoopGroup-116-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-14
05:23:56.768 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:56.769 [MockServer thread for port: 34075] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 34075
05:23:56.772 [nioEventLoopGroup-164-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xea16dfb5, /127.0.0.1:52266 => /127.0.0.1:34075] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34075
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:56.774 [nioEventLoopGroup-164-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:23:56.775 [nioEventLoopGroup-164-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xea16dfb5, /127.0.0.1:52266 => /127.0.0.1:34075] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:56.775 [nioEventLoopGroup-164-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xea16dfb5, /127.0.0.1:52266 => /127.0.0.1:34075] FLUSH
05:23:56.775 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:56.775 [nioEventLoopGroup-164-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xea16dfb5, /127.0.0.1:52266 => /127.0.0.1:34075] FLUSH
05:23:56.776 [nioEventLoopGroup-164-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xea16dfb5, /127.0.0.1:52266 :> /127.0.0.1:34075] INACTIVE
05:23:56.776 [nioEventLoopGroup-164-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xea16dfb5, /127.0.0.1:52266 :> /127.0.0.1:34075] UNREGISTERED
05:23:56.778 [nioEventLoopGroup-165-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-165-1
05:23:56.778 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:56.785 [nioEventLoopGroup-164-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd6e4026, /127.0.0.1:52268 => /127.0.0.1:34075] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34075
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
05:23:56.786 [nioEventLoopGroup-164-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
05:23:56.786 [nioEventLoopGroup-164-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd6e4026, /127.0.0.1:52268 => /127.0.0.1:34075] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:56.786 [nioEventLoopGroup-164-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd6e4026, /127.0.0.1:52268 => /127.0.0.1:34075] FLUSH
05:23:56.787 [nioEventLoopGroup-164-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd6e4026, /127.0.0.1:52268 => /127.0.0.1:34075] FLUSH
05:23:56.787 [nioEventLoopGroup-164-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd6e4026, /127.0.0.1:52268 :> /127.0.0.1:34075] INACTIVE
05:23:56.787 [nioEventLoopGroup-164-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd6e4026, /127.0.0.1:52268 :> /127.0.0.1:34075] UNREGISTERED
05:23:56.787 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:56.787 [nioEventLoopGroup-166-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-166-1
05:23:56.788 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:56.791 [nioEventLoopGroup-164-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x55037485, /127.0.0.1:52270 => /127.0.0.1:34075] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34075
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:23:56.792 [nioEventLoopGroup-164-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
05:23:56.792 [nioEventLoopGroup-164-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x55037485, /127.0.0.1:52270 => /127.0.0.1:34075] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:56.792 [nioEventLoopGroup-164-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x55037485, /127.0.0.1:52270 => /127.0.0.1:34075] FLUSH
05:23:56.793 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:56.793 [nioEventLoopGroup-164-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x55037485, /127.0.0.1:52270 => /127.0.0.1:34075] FLUSH
05:23:56.793 [nioEventLoopGroup-164-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x55037485, /127.0.0.1:52270 :> /127.0.0.1:34075] INACTIVE
05:23:56.793 [nioEventLoopGroup-164-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x55037485, /127.0.0.1:52270 :> /127.0.0.1:34075] UNREGISTERED
05:23:56.793 [nioEventLoopGroup-167-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-167-1
05:23:56.794 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:56.807 [nioEventLoopGroup-164-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1824cf3b, /127.0.0.1:52272 => /127.0.0.1:34075] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34075
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:56.808 [nioEventLoopGroup-164-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:23:56.809 [nioEventLoopGroup-164-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1824cf3b, /127.0.0.1:52272 => /127.0.0.1:34075] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:56.809 [nioEventLoopGroup-164-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1824cf3b, /127.0.0.1:52272 => /127.0.0.1:34075] FLUSH
05:23:56.809 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:56.810 [nioEventLoopGroup-164-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1824cf3b, /127.0.0.1:52272 => /127.0.0.1:34075] FLUSH
05:23:56.811 [nioEventLoopGroup-168-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-168-1
05:23:56.811 [nioEventLoopGroup-164-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1824cf3b, /127.0.0.1:52272 :> /127.0.0.1:34075] INACTIVE
05:23:56.811 [nioEventLoopGroup-164-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1824cf3b, /127.0.0.1:52272 :> /127.0.0.1:34075] UNREGISTERED
05:23:56.825 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:56.827 [nioEventLoopGroup-164-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x656a3bf4, /127.0.0.1:52274 => /127.0.0.1:34075] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34075
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
05:23:56.828 [nioEventLoopGroup-164-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
05:23:56.828 [nioEventLoopGroup-164-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x656a3bf4, /127.0.0.1:52274 => /127.0.0.1:34075] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:56.828 [nioEventLoopGroup-164-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x656a3bf4, /127.0.0.1:52274 => /127.0.0.1:34075] FLUSH
05:23:56.828 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:56.828 [nioEventLoopGroup-169-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-169-1
05:23:56.829 [nioEventLoopGroup-164-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x656a3bf4, /127.0.0.1:52274 => /127.0.0.1:34075] FLUSH
05:23:56.829 [nioEventLoopGroup-164-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x656a3bf4, /127.0.0.1:52274 :> /127.0.0.1:34075] INACTIVE
05:23:56.829 [nioEventLoopGroup-164-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x656a3bf4, /127.0.0.1:52274 :> /127.0.0.1:34075] UNREGISTERED
05:23:56.830 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:56.832 [nioEventLoopGroup-164-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc1f174be, /127.0.0.1:52276 => /127.0.0.1:34075] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34075
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
05:23:56.834 [nioEventLoopGroup-164-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
05:23:56.834 [nioEventLoopGroup-164-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc1f174be, /127.0.0.1:52276 => /127.0.0.1:34075] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:56.834 [nioEventLoopGroup-164-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc1f174be, /127.0.0.1:52276 => /127.0.0.1:34075] FLUSH
05:23:56.834 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:56.835 [nioEventLoopGroup-170-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-170-1
05:23:56.835 [nioEventLoopGroup-164-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc1f174be, /127.0.0.1:52276 => /127.0.0.1:34075] FLUSH
05:23:56.835 [nioEventLoopGroup-164-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc1f174be, /127.0.0.1:52276 :> /127.0.0.1:34075] INACTIVE
05:23:56.835 [nioEventLoopGroup-164-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc1f174be, /127.0.0.1:52276 :> /127.0.0.1:34075] UNREGISTERED
05:23:56.836 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:56.839 [nioEventLoopGroup-164-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde7f5b92, /127.0.0.1:52278 => /127.0.0.1:34075] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34075
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:23:56.840 [nioEventLoopGroup-164-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
05:23:56.840 [nioEventLoopGroup-164-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde7f5b92, /127.0.0.1:52278 => /127.0.0.1:34075] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:56.841 [nioEventLoopGroup-164-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde7f5b92, /127.0.0.1:52278 => /127.0.0.1:34075] FLUSH
05:23:56.841 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:56.841 [nioEventLoopGroup-171-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-171-1
05:23:56.841 [nioEventLoopGroup-164-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde7f5b92, /127.0.0.1:52278 => /127.0.0.1:34075] FLUSH
05:23:56.842 [nioEventLoopGroup-164-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde7f5b92, /127.0.0.1:52278 :> /127.0.0.1:34075] INACTIVE
05:23:56.842 [nioEventLoopGroup-164-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde7f5b92, /127.0.0.1:52278 :> /127.0.0.1:34075] UNREGISTERED
05:23:56.843 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:56.846 [nioEventLoopGroup-164-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc068b64f, /127.0.0.1:52280 => /127.0.0.1:34075] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34075
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:56.847 [nioEventLoopGroup-164-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
05:23:56.847 [nioEventLoopGroup-164-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc068b64f, /127.0.0.1:52280 => /127.0.0.1:34075] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:56.847 [nioEventLoopGroup-164-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc068b64f, /127.0.0.1:52280 => /127.0.0.1:34075] FLUSH
05:23:56.847 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:56.848 [nioEventLoopGroup-164-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc068b64f, /127.0.0.1:52280 => /127.0.0.1:34075] FLUSH
05:23:56.848 [nioEventLoopGroup-164-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc068b64f, /127.0.0.1:52280 :> /127.0.0.1:34075] INACTIVE
05:23:56.848 [nioEventLoopGroup-164-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc068b64f, /127.0.0.1:52280 :> /127.0.0.1:34075] UNREGISTERED
05:23:56.848 [nioEventLoopGroup-172-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-172-1
05:23:56.848 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:56.855 [nioEventLoopGroup-164-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x457b5ba8, /127.0.0.1:52282 => /127.0.0.1:34075] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34075
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:56.855 [nioEventLoopGroup-164-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
05:23:56.856 [nioEventLoopGroup-164-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x457b5ba8, /127.0.0.1:52282 => /127.0.0.1:34075] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:56.856 [nioEventLoopGroup-164-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x457b5ba8, /127.0.0.1:52282 => /127.0.0.1:34075] FLUSH
05:23:56.856 [nioEventLoopGroup-164-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x457b5ba8, /127.0.0.1:52282 => /127.0.0.1:34075] FLUSH
05:23:56.856 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:56.856 [nioEventLoopGroup-164-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x457b5ba8, /127.0.0.1:52282 :> /127.0.0.1:34075] INACTIVE
05:23:56.856 [nioEventLoopGroup-164-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x457b5ba8, /127.0.0.1:52282 :> /127.0.0.1:34075] UNREGISTERED
05:23:56.856 [nioEventLoopGroup-173-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-173-1
05:23:56.857 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:56.860 [nioEventLoopGroup-164-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2adec99f, /127.0.0.1:52284 => /127.0.0.1:34075] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34075
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:56.861 [nioEventLoopGroup-164-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
05:23:56.861 [nioEventLoopGroup-164-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2adec99f, /127.0.0.1:52284 => /127.0.0.1:34075] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:56.861 [nioEventLoopGroup-164-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2adec99f, /127.0.0.1:52284 => /127.0.0.1:34075] FLUSH
05:23:56.862 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:56.862 [nioEventLoopGroup-164-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2adec99f, /127.0.0.1:52284 => /127.0.0.1:34075] FLUSH
05:23:56.862 [nioEventLoopGroup-174-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-174-1
05:23:56.862 [nioEventLoopGroup-164-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2adec99f, /127.0.0.1:52284 :> /127.0.0.1:34075] INACTIVE
05:23:56.862 [nioEventLoopGroup-164-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2adec99f, /127.0.0.1:52284 :> /127.0.0.1:34075] UNREGISTERED
05:23:56.862 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:56.867 [nioEventLoopGroup-164-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xffeeb279, /127.0.0.1:52286 => /127.0.0.1:34075] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34075
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:56.868 [nioEventLoopGroup-164-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
05:23:56.868 [nioEventLoopGroup-164-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xffeeb279, /127.0.0.1:52286 => /127.0.0.1:34075] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:56.868 [nioEventLoopGroup-164-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xffeeb279, /127.0.0.1:52286 => /127.0.0.1:34075] FLUSH
05:23:56.869 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:56.869 [nioEventLoopGroup-175-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-175-1
05:23:56.869 [nioEventLoopGroup-164-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xffeeb279, /127.0.0.1:52286 => /127.0.0.1:34075] FLUSH
05:23:56.869 [nioEventLoopGroup-164-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xffeeb279, /127.0.0.1:52286 :> /127.0.0.1:34075] INACTIVE
05:23:56.869 [nioEventLoopGroup-164-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xffeeb279, /127.0.0.1:52286 :> /127.0.0.1:34075] UNREGISTERED
05:23:56.873 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:56.876 [nioEventLoopGroup-164-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x279c5b56, /127.0.0.1:52288 => /127.0.0.1:34075] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34075
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:56.885 [nioEventLoopGroup-164-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
05:23:56.888 [nioEventLoopGroup-164-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x279c5b56, /127.0.0.1:52288 => /127.0.0.1:34075] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:56.889 [nioEventLoopGroup-164-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x279c5b56, /127.0.0.1:52288 => /127.0.0.1:34075] FLUSH
05:23:56.891 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:56.891 [nioEventLoopGroup-164-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x279c5b56, /127.0.0.1:52288 => /127.0.0.1:34075] FLUSH
05:23:56.891 [nioEventLoopGroup-164-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x279c5b56, /127.0.0.1:52288 :> /127.0.0.1:34075] INACTIVE
05:23:56.891 [nioEventLoopGroup-164-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x279c5b56, /127.0.0.1:52288 :> /127.0.0.1:34075] UNREGISTERED
05:23:56.892 [nioEventLoopGroup-176-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-176-1
05:23:56.894 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:56.901 [nioEventLoopGroup-164-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe3ac3fca, /127.0.0.1:52292 => /127.0.0.1:34075] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34075
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:56.902 [nioEventLoopGroup-164-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:23:56.903 [nioEventLoopGroup-164-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe3ac3fca, /127.0.0.1:52292 => /127.0.0.1:34075] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:56.903 [nioEventLoopGroup-164-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe3ac3fca, /127.0.0.1:52292 => /127.0.0.1:34075] FLUSH
05:23:56.903 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:56.903 [nioEventLoopGroup-164-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe3ac3fca, /127.0.0.1:52292 => /127.0.0.1:34075] FLUSH
05:23:56.903 [nioEventLoopGroup-164-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe3ac3fca, /127.0.0.1:52292 :> /127.0.0.1:34075] INACTIVE
05:23:56.903 [nioEventLoopGroup-164-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe3ac3fca, /127.0.0.1:52292 :> /127.0.0.1:34075] UNREGISTERED
05:23:56.903 [nioEventLoopGroup-177-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-177-1
05:23:56.911 [nioEventLoopGroup-164-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3d5e6036, /127.0.0.1:52296 => /127.0.0.1:34075] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status400 HTTP/1.1
Host: localhost:34075
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_102)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
05:23:56.912 [nioEventLoopGroup-164-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34075" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:56.913 [nioEventLoopGroup-164-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34075" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:56.913 [nioEventLoopGroup-164-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34075" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:23:56.915 [nioEventLoopGroup-148-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbc5b96ee, /127.0.0.1:36424 :> /127.0.0.1:42825] FLUSH
05:23:56.915 [nioEventLoopGroup-148-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbc5b96ee, /127.0.0.1:36424 :> /127.0.0.1:42825] INACTIVE
05:23:56.915 [nioEventLoopGroup-148-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbc5b96ee, /127.0.0.1:36424 :> /127.0.0.1:42825] UNREGISTERED
05:23:56.915 [nioEventLoopGroup-148-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-16
05:23:56.915 [nioEventLoopGroup-164-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34075" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:56.915 [nioEventLoopGroup-164-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34075" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:56.915 [nioEventLoopGroup-164-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34075" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:56.916 [nioEventLoopGroup-164-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34075" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:56.916 [nioEventLoopGroup-164-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34075" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:56.916 [nioEventLoopGroup-164-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34075" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:56.916 [nioEventLoopGroup-164-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34075" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status400"
}
05:23:56.917 [nioEventLoopGroup-164-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 400
}
for request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34075" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:23:56.918 [nioEventLoopGroup-164-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3d5e6036, /127.0.0.1:52296 => /127.0.0.1:34075] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 400 Bad Request
Content-Length: 0
Connection: keep-alive, 0B
05:23:56.918 [nioEventLoopGroup-164-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3d5e6036, /127.0.0.1:52296 => /127.0.0.1:34075] FLUSH
05:23:56.923 [nioEventLoopGroup-164-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5fe17ca5, /127.0.0.1:52302 => /127.0.0.1:34075] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status400 HTTP/1.1
Host: localhost:34075
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_102)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
05:23:56.924 [nioEventLoopGroup-164-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34075" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:56.924 [nioEventLoopGroup-164-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34075" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:56.925 [nioEventLoopGroup-164-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34075" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:23:56.925 [nioEventLoopGroup-164-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34075" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:56.926 [nioEventLoopGroup-164-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34075" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:56.926 [nioEventLoopGroup-132-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-14
05:23:56.926 [nioEventLoopGroup-132-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-15
05:23:56.927 [nioEventLoopGroup-164-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34075" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:56.928 [nioEventLoopGroup-164-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34075" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:56.928 [nioEventLoopGroup-164-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34075" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:56.928 [nioEventLoopGroup-164-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34075" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:56.928 [nioEventLoopGroup-164-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34075" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status400"
}
05:23:56.929 [nioEventLoopGroup-164-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 400
}
for request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34075" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:23:56.929 [nioEventLoopGroup-164-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5fe17ca5, /127.0.0.1:52302 => /127.0.0.1:34075] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 400 Bad Request
Content-Length: 0
Connection: keep-alive, 0B
05:23:56.929 [nioEventLoopGroup-164-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5fe17ca5, /127.0.0.1:52302 => /127.0.0.1:34075] FLUSH
05:23:56.930 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
05:23:56.934 [nioEventLoopGroup-164-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd99f547f, /127.0.0.1:52306 => /127.0.0.1:34075] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:34075
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
05:23:56.935 [nioEventLoopGroup-164-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd99f547f, /127.0.0.1:52306 => /127.0.0.1:34075] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:56.935 [nioEventLoopGroup-164-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd99f547f, /127.0.0.1:52306 => /127.0.0.1:34075] FLUSH
05:23:56.936 [nioEventLoopGroup-164-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd99f547f, /127.0.0.1:52306 => /127.0.0.1:34075] CLOSE()
05:23:56.936 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:56.936 [nioEventLoopGroup-178-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-178-1
05:23:56.944 [nioEventLoopGroup-164-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-2
05:23:56.944 [nioEventLoopGroup-164-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-6
05:23:56.944 [nioEventLoopGroup-164-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-12
05:23:56.944 [nioEventLoopGroup-164-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-8
05:23:56.944 [nioEventLoopGroup-164-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-10
05:23:56.944 [nioEventLoopGroup-164-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-3
05:23:56.944 [nioEventLoopGroup-164-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-9
05:23:56.944 [nioEventLoopGroup-164-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-13
05:23:56.944 [nioEventLoopGroup-164-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-4
05:23:56.944 [nioEventLoopGroup-164-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-5
05:23:56.944 [nioEventLoopGroup-164-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-7
05:23:56.944 [nioEventLoopGroup-164-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-1
05:23:56.944 [nioEventLoopGroup-164-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-11
05:23:56.944 [nioEventLoopGroup-164-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5fe17ca5, /127.0.0.1:52302 :> /127.0.0.1:34075] INACTIVE
05:23:56.944 [nioEventLoopGroup-164-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3d5e6036, /127.0.0.1:52296 :> /127.0.0.1:34075] INACTIVE
05:23:56.944 [nioEventLoopGroup-164-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5fe17ca5, /127.0.0.1:52302 :> /127.0.0.1:34075] UNREGISTERED
05:23:56.944 [nioEventLoopGroup-164-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3d5e6036, /127.0.0.1:52296 :> /127.0.0.1:34075] UNREGISTERED
05:23:57.292 [MockServer thread for port: 45957] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 45957
05:23:57.292 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:57.294 [nioEventLoopGroup-180-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a624708, /127.0.0.1:57728 => /127.0.0.1:45957] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45957
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:57.294 [nioEventLoopGroup-180-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:23:57.295 [nioEventLoopGroup-180-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a624708, /127.0.0.1:57728 => /127.0.0.1:45957] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:57.295 [nioEventLoopGroup-180-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a624708, /127.0.0.1:57728 => /127.0.0.1:45957] FLUSH
05:23:57.295 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:57.295 [nioEventLoopGroup-180-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a624708, /127.0.0.1:57728 => /127.0.0.1:45957] FLUSH
05:23:57.295 [nioEventLoopGroup-180-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a624708, /127.0.0.1:57728 :> /127.0.0.1:45957] INACTIVE
05:23:57.295 [nioEventLoopGroup-180-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a624708, /127.0.0.1:57728 :> /127.0.0.1:45957] UNREGISTERED
05:23:57.295 [nioEventLoopGroup-181-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-181-1
05:23:57.297 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:57.299 [nioEventLoopGroup-180-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe95914f5, /127.0.0.1:57730 => /127.0.0.1:45957] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45957
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
05:23:57.306 [nioEventLoopGroup-180-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
05:23:57.307 [nioEventLoopGroup-180-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe95914f5, /127.0.0.1:57730 => /127.0.0.1:45957] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:57.307 [nioEventLoopGroup-180-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe95914f5, /127.0.0.1:57730 => /127.0.0.1:45957] FLUSH
05:23:57.307 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:57.307 [nioEventLoopGroup-180-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe95914f5, /127.0.0.1:57730 => /127.0.0.1:45957] FLUSH
05:23:57.307 [nioEventLoopGroup-180-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe95914f5, /127.0.0.1:57730 :> /127.0.0.1:45957] INACTIVE
05:23:57.307 [nioEventLoopGroup-180-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe95914f5, /127.0.0.1:57730 :> /127.0.0.1:45957] UNREGISTERED
05:23:57.307 [nioEventLoopGroup-182-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-182-1
05:23:57.309 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:57.312 [nioEventLoopGroup-180-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x90c535e4, /127.0.0.1:57734 => /127.0.0.1:45957] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45957
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:23:57.313 [nioEventLoopGroup-180-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
05:23:57.313 [nioEventLoopGroup-180-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x90c535e4, /127.0.0.1:57734 => /127.0.0.1:45957] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:57.313 [nioEventLoopGroup-180-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x90c535e4, /127.0.0.1:57734 => /127.0.0.1:45957] FLUSH
05:23:57.314 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:57.314 [nioEventLoopGroup-180-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x90c535e4, /127.0.0.1:57734 => /127.0.0.1:45957] FLUSH
05:23:57.314 [nioEventLoopGroup-180-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x90c535e4, /127.0.0.1:57734 :> /127.0.0.1:45957] INACTIVE
05:23:57.314 [nioEventLoopGroup-180-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x90c535e4, /127.0.0.1:57734 :> /127.0.0.1:45957] UNREGISTERED
05:23:57.314 [nioEventLoopGroup-183-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-183-1
05:23:57.315 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:57.329 [nioEventLoopGroup-180-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad93d3ba, /127.0.0.1:57738 => /127.0.0.1:45957] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45957
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:57.330 [nioEventLoopGroup-180-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:23:57.330 [nioEventLoopGroup-180-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad93d3ba, /127.0.0.1:57738 => /127.0.0.1:45957] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:57.330 [nioEventLoopGroup-180-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad93d3ba, /127.0.0.1:57738 => /127.0.0.1:45957] FLUSH
05:23:57.331 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:57.331 [nioEventLoopGroup-180-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad93d3ba, /127.0.0.1:57738 => /127.0.0.1:45957] FLUSH
05:23:57.331 [nioEventLoopGroup-184-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-184-1
05:23:57.331 [nioEventLoopGroup-180-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad93d3ba, /127.0.0.1:57738 :> /127.0.0.1:45957] INACTIVE
05:23:57.331 [nioEventLoopGroup-180-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad93d3ba, /127.0.0.1:57738 :> /127.0.0.1:45957] UNREGISTERED
05:23:57.332 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:57.334 [nioEventLoopGroup-180-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd7e1a826, /127.0.0.1:57740 => /127.0.0.1:45957] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45957
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
05:23:57.335 [nioEventLoopGroup-180-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
05:23:57.336 [nioEventLoopGroup-180-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd7e1a826, /127.0.0.1:57740 => /127.0.0.1:45957] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:57.336 [nioEventLoopGroup-180-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd7e1a826, /127.0.0.1:57740 => /127.0.0.1:45957] FLUSH
05:23:57.338 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:57.338 [nioEventLoopGroup-180-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd7e1a826, /127.0.0.1:57740 => /127.0.0.1:45957] FLUSH
05:23:57.338 [nioEventLoopGroup-185-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-185-1
05:23:57.340 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:57.347 [nioEventLoopGroup-180-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd7e1a826, /127.0.0.1:57740 :> /127.0.0.1:45957] INACTIVE
05:23:57.347 [nioEventLoopGroup-180-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd7e1a826, /127.0.0.1:57740 :> /127.0.0.1:45957] UNREGISTERED
05:23:57.351 [nioEventLoopGroup-180-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3bcae822, /127.0.0.1:57742 => /127.0.0.1:45957] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45957
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
05:23:57.351 [nioEventLoopGroup-180-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
05:23:57.352 [nioEventLoopGroup-180-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3bcae822, /127.0.0.1:57742 => /127.0.0.1:45957] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:57.352 [nioEventLoopGroup-180-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3bcae822, /127.0.0.1:57742 => /127.0.0.1:45957] FLUSH
05:23:57.352 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:57.352 [nioEventLoopGroup-180-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3bcae822, /127.0.0.1:57742 => /127.0.0.1:45957] FLUSH
05:23:57.352 [nioEventLoopGroup-180-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3bcae822, /127.0.0.1:57742 :> /127.0.0.1:45957] INACTIVE
05:23:57.352 [nioEventLoopGroup-180-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3bcae822, /127.0.0.1:57742 :> /127.0.0.1:45957] UNREGISTERED
05:23:57.352 [nioEventLoopGroup-186-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-186-1
05:23:57.353 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:57.356 [nioEventLoopGroup-180-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x23b1c7ef, /127.0.0.1:57744 => /127.0.0.1:45957] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45957
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:23:57.356 [nioEventLoopGroup-180-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
05:23:57.357 [nioEventLoopGroup-180-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x23b1c7ef, /127.0.0.1:57744 => /127.0.0.1:45957] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:57.357 [nioEventLoopGroup-180-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x23b1c7ef, /127.0.0.1:57744 => /127.0.0.1:45957] FLUSH
05:23:57.357 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:57.357 [nioEventLoopGroup-187-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-187-1
05:23:57.357 [nioEventLoopGroup-180-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x23b1c7ef, /127.0.0.1:57744 => /127.0.0.1:45957] FLUSH
05:23:57.358 [nioEventLoopGroup-180-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x23b1c7ef, /127.0.0.1:57744 :> /127.0.0.1:45957] INACTIVE
05:23:57.358 [nioEventLoopGroup-180-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x23b1c7ef, /127.0.0.1:57744 :> /127.0.0.1:45957] UNREGISTERED
05:23:57.358 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:57.360 [nioEventLoopGroup-180-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x80fe6c54, /127.0.0.1:57746 => /127.0.0.1:45957] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45957
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:57.361 [nioEventLoopGroup-180-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
05:23:57.361 [nioEventLoopGroup-180-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x80fe6c54, /127.0.0.1:57746 => /127.0.0.1:45957] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:57.361 [nioEventLoopGroup-180-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x80fe6c54, /127.0.0.1:57746 => /127.0.0.1:45957] FLUSH
05:23:57.362 [nioEventLoopGroup-180-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x80fe6c54, /127.0.0.1:57746 => /127.0.0.1:45957] FLUSH
05:23:57.362 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:57.362 [nioEventLoopGroup-180-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x80fe6c54, /127.0.0.1:57746 :> /127.0.0.1:45957] INACTIVE
05:23:57.362 [nioEventLoopGroup-180-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x80fe6c54, /127.0.0.1:57746 :> /127.0.0.1:45957] UNREGISTERED
05:23:57.362 [nioEventLoopGroup-188-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-188-1
05:23:57.363 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:57.365 [nioEventLoopGroup-180-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x10d15f2b, /127.0.0.1:57748 => /127.0.0.1:45957] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45957
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:57.366 [nioEventLoopGroup-180-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
05:23:57.366 [nioEventLoopGroup-180-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x10d15f2b, /127.0.0.1:57748 => /127.0.0.1:45957] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:57.366 [nioEventLoopGroup-180-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x10d15f2b, /127.0.0.1:57748 => /127.0.0.1:45957] FLUSH
05:23:57.366 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:57.366 [nioEventLoopGroup-180-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x10d15f2b, /127.0.0.1:57748 => /127.0.0.1:45957] FLUSH
05:23:57.366 [nioEventLoopGroup-180-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x10d15f2b, /127.0.0.1:57748 :> /127.0.0.1:45957] INACTIVE
05:23:57.366 [nioEventLoopGroup-189-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-189-1
05:23:57.366 [nioEventLoopGroup-180-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x10d15f2b, /127.0.0.1:57748 :> /127.0.0.1:45957] UNREGISTERED
05:23:57.367 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:57.369 [nioEventLoopGroup-180-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x512ee083, /127.0.0.1:57750 => /127.0.0.1:45957] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45957
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:57.370 [nioEventLoopGroup-180-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
05:23:57.370 [nioEventLoopGroup-180-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x512ee083, /127.0.0.1:57750 => /127.0.0.1:45957] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:57.370 [nioEventLoopGroup-180-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x512ee083, /127.0.0.1:57750 => /127.0.0.1:45957] FLUSH
05:23:57.370 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:57.370 [nioEventLoopGroup-180-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x512ee083, /127.0.0.1:57750 => /127.0.0.1:45957] FLUSH
05:23:57.370 [nioEventLoopGroup-180-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x512ee083, /127.0.0.1:57750 :> /127.0.0.1:45957] INACTIVE
05:23:57.370 [nioEventLoopGroup-180-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x512ee083, /127.0.0.1:57750 :> /127.0.0.1:45957] UNREGISTERED
05:23:57.370 [nioEventLoopGroup-190-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-190-1
05:23:57.371 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:57.373 [nioEventLoopGroup-180-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2c3a82e1, /127.0.0.1:57752 => /127.0.0.1:45957] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45957
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:57.373 [nioEventLoopGroup-180-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
05:23:57.373 [nioEventLoopGroup-180-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2c3a82e1, /127.0.0.1:57752 => /127.0.0.1:45957] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:57.373 [nioEventLoopGroup-180-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2c3a82e1, /127.0.0.1:57752 => /127.0.0.1:45957] FLUSH
05:23:57.373 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:57.373 [nioEventLoopGroup-180-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2c3a82e1, /127.0.0.1:57752 => /127.0.0.1:45957] FLUSH
05:23:57.373 [nioEventLoopGroup-180-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2c3a82e1, /127.0.0.1:57752 :> /127.0.0.1:45957] INACTIVE
05:23:57.373 [nioEventLoopGroup-180-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2c3a82e1, /127.0.0.1:57752 :> /127.0.0.1:45957] UNREGISTERED
05:23:57.374 [nioEventLoopGroup-191-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-191-1
05:23:57.374 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:57.376 [nioEventLoopGroup-180-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x81f0b862, /127.0.0.1:57754 => /127.0.0.1:45957] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45957
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:57.377 [nioEventLoopGroup-180-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
05:23:57.377 [nioEventLoopGroup-180-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x81f0b862, /127.0.0.1:57754 => /127.0.0.1:45957] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:57.377 [nioEventLoopGroup-180-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x81f0b862, /127.0.0.1:57754 => /127.0.0.1:45957] FLUSH
05:23:57.377 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:57.377 [nioEventLoopGroup-180-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x81f0b862, /127.0.0.1:57754 => /127.0.0.1:45957] FLUSH
05:23:57.377 [nioEventLoopGroup-180-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x81f0b862, /127.0.0.1:57754 :> /127.0.0.1:45957] INACTIVE
05:23:57.377 [nioEventLoopGroup-192-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-192-1
05:23:57.378 [nioEventLoopGroup-180-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x81f0b862, /127.0.0.1:57754 :> /127.0.0.1:45957] UNREGISTERED
05:23:57.378 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:57.380 [nioEventLoopGroup-180-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x38d11fcc, /127.0.0.1:57756 => /127.0.0.1:45957] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45957
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:57.381 [nioEventLoopGroup-180-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:23:57.381 [nioEventLoopGroup-180-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x38d11fcc, /127.0.0.1:57756 => /127.0.0.1:45957] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:57.381 [nioEventLoopGroup-180-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x38d11fcc, /127.0.0.1:57756 => /127.0.0.1:45957] FLUSH
05:23:57.381 [nioEventLoopGroup-180-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x38d11fcc, /127.0.0.1:57756 => /127.0.0.1:45957] FLUSH
05:23:57.382 [nioEventLoopGroup-180-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x38d11fcc, /127.0.0.1:57756 :> /127.0.0.1:45957] INACTIVE
05:23:57.382 [nioEventLoopGroup-180-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x38d11fcc, /127.0.0.1:57756 :> /127.0.0.1:45957] UNREGISTERED
05:23:57.382 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:57.383 [nioEventLoopGroup-193-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-193-1
05:23:57.387 [nioEventLoopGroup-180-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaba6cbd7, /127.0.0.1:57758 => /127.0.0.1:45957] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status500 HTTP/1.1
Host: localhost:45957
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_102)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
05:23:57.388 [nioEventLoopGroup-180-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45957" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:57.388 [nioEventLoopGroup-180-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45957" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:57.388 [nioEventLoopGroup-180-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45957" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:23:57.388 [nioEventLoopGroup-180-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45957" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:57.389 [nioEventLoopGroup-180-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45957" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:57.389 [nioEventLoopGroup-180-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45957" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:57.389 [nioEventLoopGroup-180-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45957" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:57.389 [nioEventLoopGroup-180-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45957" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:57.389 [nioEventLoopGroup-180-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45957" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:57.389 [nioEventLoopGroup-180-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45957" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:57.389 [nioEventLoopGroup-180-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45957" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status500"
}
05:23:57.390 [nioEventLoopGroup-180-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 500
}
for request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45957" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:23:57.390 [nioEventLoopGroup-180-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaba6cbd7, /127.0.0.1:57758 => /127.0.0.1:45957] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 500 Internal Server Error
Content-Length: 0
Connection: keep-alive, 0B
05:23:57.390 [nioEventLoopGroup-180-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaba6cbd7, /127.0.0.1:57758 => /127.0.0.1:45957] FLUSH
05:23:57.398 [nioEventLoopGroup-180-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c423c2b, /127.0.0.1:57762 => /127.0.0.1:45957] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status500 HTTP/1.1
Host: localhost:45957
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_102)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
05:23:57.398 [nioEventLoopGroup-180-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45957" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:57.398 [nioEventLoopGroup-180-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45957" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:57.398 [nioEventLoopGroup-180-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45957" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:23:57.399 [nioEventLoopGroup-180-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45957" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:57.399 [nioEventLoopGroup-180-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45957" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:57.399 [nioEventLoopGroup-180-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45957" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:57.399 [nioEventLoopGroup-180-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45957" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:57.399 [nioEventLoopGroup-180-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45957" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:57.400 [nioEventLoopGroup-180-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45957" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:57.400 [nioEventLoopGroup-180-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45957" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:57.400 [nioEventLoopGroup-180-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45957" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status500"
}
05:23:57.400 [nioEventLoopGroup-180-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 500
}
for request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45957" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:23:57.400 [nioEventLoopGroup-180-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c423c2b, /127.0.0.1:57762 => /127.0.0.1:45957] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 500 Internal Server Error
Content-Length: 0
Connection: keep-alive, 0B
05:23:57.400 [nioEventLoopGroup-180-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c423c2b, /127.0.0.1:57762 => /127.0.0.1:45957] FLUSH
05:23:57.401 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
05:23:57.404 [nioEventLoopGroup-180-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb9269eee, /127.0.0.1:57764 => /127.0.0.1:45957] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:45957
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
05:23:57.404 [nioEventLoopGroup-180-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb9269eee, /127.0.0.1:57764 => /127.0.0.1:45957] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:57.404 [nioEventLoopGroup-180-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb9269eee, /127.0.0.1:57764 => /127.0.0.1:45957] FLUSH
05:23:57.404 [nioEventLoopGroup-180-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb9269eee, /127.0.0.1:57764 => /127.0.0.1:45957] CLOSE()
05:23:57.404 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:57.405 [nioEventLoopGroup-194-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-194-1
05:23:57.406 [nioEventLoopGroup-180-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-5
05:23:57.406 [nioEventLoopGroup-180-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-12
05:23:57.406 [nioEventLoopGroup-180-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-1
05:23:57.406 [nioEventLoopGroup-180-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-13
05:23:57.406 [nioEventLoopGroup-180-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-4
05:23:57.406 [nioEventLoopGroup-180-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-2
05:23:57.406 [nioEventLoopGroup-180-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-6
05:23:57.407 [nioEventLoopGroup-180-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-7
05:23:57.407 [nioEventLoopGroup-180-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-11
05:23:57.407 [nioEventLoopGroup-180-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-8
05:23:57.407 [nioEventLoopGroup-180-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-9
05:23:57.407 [nioEventLoopGroup-180-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c423c2b, /127.0.0.1:57762 :> /127.0.0.1:45957] INACTIVE
05:23:57.407 [nioEventLoopGroup-180-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaba6cbd7, /127.0.0.1:57758 :> /127.0.0.1:45957] INACTIVE
05:23:57.407 [nioEventLoopGroup-180-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-10
05:23:57.407 [nioEventLoopGroup-180-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-3
05:23:57.408 [nioEventLoopGroup-180-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c423c2b, /127.0.0.1:57762 :> /127.0.0.1:45957] UNREGISTERED
05:23:57.408 [nioEventLoopGroup-180-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaba6cbd7, /127.0.0.1:57758 :> /127.0.0.1:45957] UNREGISTERED
05:23:57.417 [nioEventLoopGroup-148-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-14
05:23:57.417 [nioEventLoopGroup-148-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-15
05:23:57.444 [nioEventLoopGroup-164-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd99f547f, /127.0.0.1:52306 :> /127.0.0.1:34075] FLUSH
05:23:57.444 [nioEventLoopGroup-164-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd99f547f, /127.0.0.1:52306 :> /127.0.0.1:34075] INACTIVE
05:23:57.444 [nioEventLoopGroup-164-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd99f547f, /127.0.0.1:52306 :> /127.0.0.1:34075] UNREGISTERED
05:23:57.444 [nioEventLoopGroup-164-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-16
05:23:57.760 [MockServer thread for port: 42415] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 42415
05:23:57.760 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:57.762 [nioEventLoopGroup-196-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf4ab77d9, /127.0.0.1:40956 => /127.0.0.1:42415] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42415
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:57.763 [nioEventLoopGroup-196-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:23:57.764 [nioEventLoopGroup-196-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf4ab77d9, /127.0.0.1:40956 => /127.0.0.1:42415] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:57.764 [nioEventLoopGroup-196-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf4ab77d9, /127.0.0.1:40956 => /127.0.0.1:42415] FLUSH
05:23:57.764 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:57.764 [nioEventLoopGroup-196-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf4ab77d9, /127.0.0.1:40956 => /127.0.0.1:42415] FLUSH
05:23:57.764 [nioEventLoopGroup-196-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf4ab77d9, /127.0.0.1:40956 :> /127.0.0.1:42415] INACTIVE
05:23:57.764 [nioEventLoopGroup-196-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf4ab77d9, /127.0.0.1:40956 :> /127.0.0.1:42415] UNREGISTERED
05:23:57.764 [nioEventLoopGroup-197-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-197-1
05:23:57.766 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:57.768 [nioEventLoopGroup-196-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x348e50ea, /127.0.0.1:40958 => /127.0.0.1:42415] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42415
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
05:23:57.769 [nioEventLoopGroup-196-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
05:23:57.769 [nioEventLoopGroup-196-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x348e50ea, /127.0.0.1:40958 => /127.0.0.1:42415] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:57.769 [nioEventLoopGroup-196-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x348e50ea, /127.0.0.1:40958 => /127.0.0.1:42415] FLUSH
05:23:57.769 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:57.769 [nioEventLoopGroup-196-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x348e50ea, /127.0.0.1:40958 => /127.0.0.1:42415] FLUSH
05:23:57.769 [nioEventLoopGroup-196-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x348e50ea, /127.0.0.1:40958 :> /127.0.0.1:42415] INACTIVE
05:23:57.769 [nioEventLoopGroup-196-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x348e50ea, /127.0.0.1:40958 :> /127.0.0.1:42415] UNREGISTERED
05:23:57.769 [nioEventLoopGroup-198-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-198-1
05:23:57.770 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:57.771 [nioEventLoopGroup-196-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7f153ea9, /127.0.0.1:40960 => /127.0.0.1:42415] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42415
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:23:57.772 [nioEventLoopGroup-196-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
05:23:57.772 [nioEventLoopGroup-196-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7f153ea9, /127.0.0.1:40960 => /127.0.0.1:42415] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:57.772 [nioEventLoopGroup-196-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7f153ea9, /127.0.0.1:40960 => /127.0.0.1:42415] FLUSH
05:23:57.773 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:57.773 [nioEventLoopGroup-196-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7f153ea9, /127.0.0.1:40960 => /127.0.0.1:42415] FLUSH
05:23:57.773 [nioEventLoopGroup-196-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7f153ea9, /127.0.0.1:40960 :> /127.0.0.1:42415] INACTIVE
05:23:57.773 [nioEventLoopGroup-199-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-199-1
05:23:57.773 [nioEventLoopGroup-196-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7f153ea9, /127.0.0.1:40960 :> /127.0.0.1:42415] UNREGISTERED
05:23:57.773 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:57.775 [nioEventLoopGroup-196-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x948d35b5, /127.0.0.1:40962 => /127.0.0.1:42415] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42415
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:57.776 [nioEventLoopGroup-196-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:23:57.776 [nioEventLoopGroup-196-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x948d35b5, /127.0.0.1:40962 => /127.0.0.1:42415] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:57.776 [nioEventLoopGroup-196-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x948d35b5, /127.0.0.1:40962 => /127.0.0.1:42415] FLUSH
05:23:57.777 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:57.777 [nioEventLoopGroup-196-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x948d35b5, /127.0.0.1:40962 => /127.0.0.1:42415] FLUSH
05:23:57.777 [nioEventLoopGroup-200-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-200-1
05:23:57.777 [nioEventLoopGroup-196-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x948d35b5, /127.0.0.1:40962 :> /127.0.0.1:42415] INACTIVE
05:23:57.777 [nioEventLoopGroup-196-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x948d35b5, /127.0.0.1:40962 :> /127.0.0.1:42415] UNREGISTERED
05:23:57.778 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:57.779 [nioEventLoopGroup-196-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6a93bf2, /127.0.0.1:40964 => /127.0.0.1:42415] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42415
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
05:23:57.782 [nioEventLoopGroup-196-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
05:23:57.782 [nioEventLoopGroup-196-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6a93bf2, /127.0.0.1:40964 => /127.0.0.1:42415] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:57.782 [nioEventLoopGroup-196-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6a93bf2, /127.0.0.1:40964 => /127.0.0.1:42415] FLUSH
05:23:57.782 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:57.782 [nioEventLoopGroup-196-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6a93bf2, /127.0.0.1:40964 => /127.0.0.1:42415] FLUSH
05:23:57.782 [nioEventLoopGroup-196-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6a93bf2, /127.0.0.1:40964 :> /127.0.0.1:42415] INACTIVE
05:23:57.782 [nioEventLoopGroup-196-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6a93bf2, /127.0.0.1:40964 :> /127.0.0.1:42415] UNREGISTERED
05:23:57.782 [nioEventLoopGroup-201-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-201-1
05:23:57.783 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:57.785 [nioEventLoopGroup-196-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2f53906b, /127.0.0.1:40966 => /127.0.0.1:42415] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42415
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
05:23:57.785 [nioEventLoopGroup-196-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
05:23:57.785 [nioEventLoopGroup-196-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2f53906b, /127.0.0.1:40966 => /127.0.0.1:42415] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:57.785 [nioEventLoopGroup-196-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2f53906b, /127.0.0.1:40966 => /127.0.0.1:42415] FLUSH
05:23:57.786 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:57.786 [nioEventLoopGroup-196-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2f53906b, /127.0.0.1:40966 => /127.0.0.1:42415] FLUSH
05:23:57.786 [nioEventLoopGroup-196-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2f53906b, /127.0.0.1:40966 :> /127.0.0.1:42415] INACTIVE
05:23:57.786 [nioEventLoopGroup-202-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-202-1
05:23:57.786 [nioEventLoopGroup-196-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2f53906b, /127.0.0.1:40966 :> /127.0.0.1:42415] UNREGISTERED
05:23:57.786 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:57.788 [nioEventLoopGroup-196-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc581e183, /127.0.0.1:40968 => /127.0.0.1:42415] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42415
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:23:57.788 [nioEventLoopGroup-196-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
05:23:57.789 [nioEventLoopGroup-196-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc581e183, /127.0.0.1:40968 => /127.0.0.1:42415] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:57.789 [nioEventLoopGroup-196-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc581e183, /127.0.0.1:40968 => /127.0.0.1:42415] FLUSH
05:23:57.789 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:57.789 [nioEventLoopGroup-196-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc581e183, /127.0.0.1:40968 => /127.0.0.1:42415] FLUSH
05:23:57.789 [nioEventLoopGroup-196-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc581e183, /127.0.0.1:40968 :> /127.0.0.1:42415] INACTIVE
05:23:57.789 [nioEventLoopGroup-203-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-203-1
05:23:57.789 [nioEventLoopGroup-196-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc581e183, /127.0.0.1:40968 :> /127.0.0.1:42415] UNREGISTERED
05:23:57.790 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:57.791 [nioEventLoopGroup-196-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x52398c64, /127.0.0.1:40970 => /127.0.0.1:42415] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42415
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:57.792 [nioEventLoopGroup-196-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
05:23:57.792 [nioEventLoopGroup-196-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x52398c64, /127.0.0.1:40970 => /127.0.0.1:42415] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:57.792 [nioEventLoopGroup-196-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x52398c64, /127.0.0.1:40970 => /127.0.0.1:42415] FLUSH
05:23:57.792 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:57.792 [nioEventLoopGroup-196-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x52398c64, /127.0.0.1:40970 => /127.0.0.1:42415] FLUSH
05:23:57.792 [nioEventLoopGroup-196-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x52398c64, /127.0.0.1:40970 :> /127.0.0.1:42415] INACTIVE
05:23:57.792 [nioEventLoopGroup-204-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-204-1
05:23:57.792 [nioEventLoopGroup-196-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x52398c64, /127.0.0.1:40970 :> /127.0.0.1:42415] UNREGISTERED
05:23:57.793 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:57.794 [nioEventLoopGroup-196-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6303decd, /127.0.0.1:40972 => /127.0.0.1:42415] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42415
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:57.795 [nioEventLoopGroup-196-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
05:23:57.795 [nioEventLoopGroup-196-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6303decd, /127.0.0.1:40972 => /127.0.0.1:42415] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:57.795 [nioEventLoopGroup-196-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6303decd, /127.0.0.1:40972 => /127.0.0.1:42415] FLUSH
05:23:57.795 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:57.795 [nioEventLoopGroup-196-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6303decd, /127.0.0.1:40972 => /127.0.0.1:42415] FLUSH
05:23:57.795 [nioEventLoopGroup-196-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6303decd, /127.0.0.1:40972 :> /127.0.0.1:42415] INACTIVE
05:23:57.796 [nioEventLoopGroup-196-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6303decd, /127.0.0.1:40972 :> /127.0.0.1:42415] UNREGISTERED
05:23:57.796 [nioEventLoopGroup-205-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-205-1
05:23:57.796 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:57.798 [nioEventLoopGroup-196-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x47cb1ca8, /127.0.0.1:40974 => /127.0.0.1:42415] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42415
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:57.799 [nioEventLoopGroup-196-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
05:23:57.799 [nioEventLoopGroup-196-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x47cb1ca8, /127.0.0.1:40974 => /127.0.0.1:42415] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:57.799 [nioEventLoopGroup-196-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x47cb1ca8, /127.0.0.1:40974 => /127.0.0.1:42415] FLUSH
05:23:57.799 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:57.799 [nioEventLoopGroup-196-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x47cb1ca8, /127.0.0.1:40974 => /127.0.0.1:42415] FLUSH
05:23:57.799 [nioEventLoopGroup-196-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x47cb1ca8, /127.0.0.1:40974 :> /127.0.0.1:42415] INACTIVE
05:23:57.799 [nioEventLoopGroup-196-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x47cb1ca8, /127.0.0.1:40974 :> /127.0.0.1:42415] UNREGISTERED
05:23:57.799 [nioEventLoopGroup-206-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-206-1
05:23:57.800 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:57.803 [nioEventLoopGroup-196-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb5b5ad0f, /127.0.0.1:40978 => /127.0.0.1:42415] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42415
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:57.804 [nioEventLoopGroup-196-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
05:23:57.804 [nioEventLoopGroup-196-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb5b5ad0f, /127.0.0.1:40978 => /127.0.0.1:42415] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:57.804 [nioEventLoopGroup-196-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb5b5ad0f, /127.0.0.1:40978 => /127.0.0.1:42415] FLUSH
05:23:57.804 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:57.804 [nioEventLoopGroup-196-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb5b5ad0f, /127.0.0.1:40978 => /127.0.0.1:42415] FLUSH
05:23:57.804 [nioEventLoopGroup-196-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb5b5ad0f, /127.0.0.1:40978 :> /127.0.0.1:42415] INACTIVE
05:23:57.804 [nioEventLoopGroup-196-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb5b5ad0f, /127.0.0.1:40978 :> /127.0.0.1:42415] UNREGISTERED
05:23:57.804 [nioEventLoopGroup-207-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-207-1
05:23:57.805 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:57.817 [nioEventLoopGroup-196-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6229deb1, /127.0.0.1:40982 => /127.0.0.1:42415] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42415
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:57.817 [nioEventLoopGroup-196-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
05:23:57.818 [nioEventLoopGroup-196-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6229deb1, /127.0.0.1:40982 => /127.0.0.1:42415] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:57.818 [nioEventLoopGroup-196-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6229deb1, /127.0.0.1:40982 => /127.0.0.1:42415] FLUSH
05:23:57.818 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:57.818 [nioEventLoopGroup-196-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6229deb1, /127.0.0.1:40982 => /127.0.0.1:42415] FLUSH
05:23:57.818 [nioEventLoopGroup-196-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6229deb1, /127.0.0.1:40982 :> /127.0.0.1:42415] INACTIVE
05:23:57.818 [nioEventLoopGroup-196-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6229deb1, /127.0.0.1:40982 :> /127.0.0.1:42415] UNREGISTERED
05:23:57.818 [nioEventLoopGroup-208-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-208-1
05:23:57.819 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:57.823 [nioEventLoopGroup-196-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x51c139b2, /127.0.0.1:40984 => /127.0.0.1:42415] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42415
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:57.824 [nioEventLoopGroup-196-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:23:57.824 [nioEventLoopGroup-196-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x51c139b2, /127.0.0.1:40984 => /127.0.0.1:42415] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:57.824 [nioEventLoopGroup-196-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x51c139b2, /127.0.0.1:40984 => /127.0.0.1:42415] FLUSH
05:23:57.824 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:57.824 [nioEventLoopGroup-196-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x51c139b2, /127.0.0.1:40984 => /127.0.0.1:42415] FLUSH
05:23:57.824 [nioEventLoopGroup-196-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x51c139b2, /127.0.0.1:40984 :> /127.0.0.1:42415] INACTIVE
05:23:57.824 [nioEventLoopGroup-196-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x51c139b2, /127.0.0.1:40984 :> /127.0.0.1:42415] UNREGISTERED
05:23:57.824 [nioEventLoopGroup-209-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-209-1
05:23:57.829 [nioEventLoopGroup-196-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1463e574, /127.0.0.1:40986 => /127.0.0.1:42415] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status200 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_102
Host: localhost:42415
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
05:23:57.830 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:42415" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:57.830 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:42415" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:57.830 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:42415" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:23:57.830 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:42415" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:57.831 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:42415" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:57.831 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:42415" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:57.831 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:42415" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:57.831 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:42415" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status200"
}
05:23:57.832 [nioEventLoopGroup-196-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200
}
for request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:42415" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:23:57.832 [nioEventLoopGroup-196-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1463e574, /127.0.0.1:40986 => /127.0.0.1:42415] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 200 OK
Content-Length: 0
Connection: keep-alive, 0B
05:23:57.832 [nioEventLoopGroup-196-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1463e574, /127.0.0.1:40986 => /127.0.0.1:42415] FLUSH
05:23:57.833 [nioEventLoopGroup-196-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1463e574, /127.0.0.1:40986 => /127.0.0.1:42415] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status200 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_102
Host: localhost:42415
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
05:23:57.834 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:42415" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:57.834 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:42415" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:57.834 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:42415" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:23:57.834 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:42415" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:57.834 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:42415" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:57.835 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:42415" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:57.835 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:42415" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:57.835 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:42415" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status200"
}
05:23:57.836 [nioEventLoopGroup-196-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200
}
for request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:42415" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:23:57.836 [nioEventLoopGroup-196-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1463e574, /127.0.0.1:40986 => /127.0.0.1:42415] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 200 OK
Content-Length: 0
Connection: keep-alive, 0B
05:23:57.836 [nioEventLoopGroup-196-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1463e574, /127.0.0.1:40986 => /127.0.0.1:42415] FLUSH
05:23:57.836 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
05:23:57.838 [nioEventLoopGroup-196-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x22fb52f5, /127.0.0.1:40988 => /127.0.0.1:42415] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:42415
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
05:23:57.839 [nioEventLoopGroup-196-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x22fb52f5, /127.0.0.1:40988 => /127.0.0.1:42415] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:57.839 [nioEventLoopGroup-196-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x22fb52f5, /127.0.0.1:40988 => /127.0.0.1:42415] FLUSH
05:23:57.839 [nioEventLoopGroup-196-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x22fb52f5, /127.0.0.1:40988 => /127.0.0.1:42415] CLOSE()
05:23:57.839 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:57.839 [nioEventLoopGroup-210-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-210-1
05:23:57.841 [nioEventLoopGroup-196-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-1
05:23:57.841 [nioEventLoopGroup-196-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-3
05:23:57.841 [nioEventLoopGroup-196-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-2
05:23:57.841 [nioEventLoopGroup-196-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-9
05:23:57.841 [nioEventLoopGroup-196-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-12
05:23:57.841 [nioEventLoopGroup-196-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-10
05:23:57.841 [nioEventLoopGroup-196-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-11
05:23:57.841 [nioEventLoopGroup-196-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-4
05:23:57.841 [nioEventLoopGroup-196-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-5
05:23:57.841 [nioEventLoopGroup-196-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-6
05:23:57.841 [nioEventLoopGroup-196-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-8
05:23:57.841 [nioEventLoopGroup-196-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-13
05:23:57.842 [nioEventLoopGroup-196-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1463e574, /127.0.0.1:40986 :> /127.0.0.1:42415] INACTIVE
05:23:57.842 [nioEventLoopGroup-196-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1463e574, /127.0.0.1:40986 :> /127.0.0.1:42415] UNREGISTERED
05:23:57.846 [nioEventLoopGroup-196-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-7
05:23:57.907 [nioEventLoopGroup-180-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb9269eee, /127.0.0.1:57764 :> /127.0.0.1:45957] FLUSH
05:23:57.907 [nioEventLoopGroup-180-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb9269eee, /127.0.0.1:57764 :> /127.0.0.1:45957] INACTIVE
05:23:57.907 [nioEventLoopGroup-180-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb9269eee, /127.0.0.1:57764 :> /127.0.0.1:45957] UNREGISTERED
05:23:57.908 [nioEventLoopGroup-180-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-16
05:23:57.946 [nioEventLoopGroup-164-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-14
05:23:57.946 [nioEventLoopGroup-164-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-15
05:23:58.195 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:58.196 [MockServer thread for port: 36959] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 36959
05:23:58.200 [nioEventLoopGroup-212-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6ae4d751, /127.0.0.1:57488 => /127.0.0.1:36959] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36959
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:58.201 [nioEventLoopGroup-212-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:23:58.202 [nioEventLoopGroup-212-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6ae4d751, /127.0.0.1:57488 => /127.0.0.1:36959] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:58.202 [nioEventLoopGroup-212-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6ae4d751, /127.0.0.1:57488 => /127.0.0.1:36959] FLUSH
05:23:58.202 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:58.203 [nioEventLoopGroup-213-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-213-1
05:23:58.203 [nioEventLoopGroup-212-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6ae4d751, /127.0.0.1:57488 => /127.0.0.1:36959] FLUSH
05:23:58.203 [nioEventLoopGroup-212-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6ae4d751, /127.0.0.1:57488 :> /127.0.0.1:36959] INACTIVE
05:23:58.203 [nioEventLoopGroup-212-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6ae4d751, /127.0.0.1:57488 :> /127.0.0.1:36959] UNREGISTERED
05:23:58.206 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:58.238 [nioEventLoopGroup-212-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x50cc60e3, /127.0.0.1:57496 => /127.0.0.1:36959] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36959
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
05:23:58.239 [nioEventLoopGroup-212-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
05:23:58.239 [nioEventLoopGroup-212-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x50cc60e3, /127.0.0.1:57496 => /127.0.0.1:36959] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:58.239 [nioEventLoopGroup-212-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x50cc60e3, /127.0.0.1:57496 => /127.0.0.1:36959] FLUSH
05:23:58.240 [nioEventLoopGroup-212-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x50cc60e3, /127.0.0.1:57496 => /127.0.0.1:36959] FLUSH
05:23:58.240 [nioEventLoopGroup-212-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x50cc60e3, /127.0.0.1:57496 :> /127.0.0.1:36959] INACTIVE
05:23:58.240 [nioEventLoopGroup-212-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x50cc60e3, /127.0.0.1:57496 :> /127.0.0.1:36959] UNREGISTERED
05:23:58.240 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:58.240 [nioEventLoopGroup-214-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-214-1
05:23:58.241 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:58.243 [nioEventLoopGroup-212-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdc3355a8, /127.0.0.1:57498 => /127.0.0.1:36959] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36959
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:23:58.244 [nioEventLoopGroup-212-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
05:23:58.244 [nioEventLoopGroup-212-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdc3355a8, /127.0.0.1:57498 => /127.0.0.1:36959] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:58.244 [nioEventLoopGroup-212-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdc3355a8, /127.0.0.1:57498 => /127.0.0.1:36959] FLUSH
05:23:58.244 [nioEventLoopGroup-212-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdc3355a8, /127.0.0.1:57498 => /127.0.0.1:36959] FLUSH
05:23:58.244 [nioEventLoopGroup-212-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdc3355a8, /127.0.0.1:57498 :> /127.0.0.1:36959] INACTIVE
05:23:58.245 [nioEventLoopGroup-212-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdc3355a8, /127.0.0.1:57498 :> /127.0.0.1:36959] UNREGISTERED
05:23:58.248 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:58.251 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:58.253 [nioEventLoopGroup-212-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1009a242, /127.0.0.1:57502 => /127.0.0.1:36959] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36959
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:58.255 [nioEventLoopGroup-212-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:23:58.256 [nioEventLoopGroup-212-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1009a242, /127.0.0.1:57502 => /127.0.0.1:36959] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:58.256 [nioEventLoopGroup-212-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1009a242, /127.0.0.1:57502 => /127.0.0.1:36959] FLUSH
05:23:58.257 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:58.257 [nioEventLoopGroup-212-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1009a242, /127.0.0.1:57502 => /127.0.0.1:36959] FLUSH
05:23:58.257 [nioEventLoopGroup-212-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1009a242, /127.0.0.1:57502 :> /127.0.0.1:36959] INACTIVE
05:23:58.257 [nioEventLoopGroup-212-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1009a242, /127.0.0.1:57502 :> /127.0.0.1:36959] UNREGISTERED
05:23:58.257 [nioEventLoopGroup-216-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-216-1
05:23:58.258 [nioEventLoopGroup-215-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-215-1
05:23:58.258 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:58.261 [nioEventLoopGroup-212-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe227dbc3, /127.0.0.1:57504 => /127.0.0.1:36959] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36959
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
05:23:58.262 [nioEventLoopGroup-212-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
05:23:58.262 [nioEventLoopGroup-212-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe227dbc3, /127.0.0.1:57504 => /127.0.0.1:36959] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:58.262 [nioEventLoopGroup-212-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe227dbc3, /127.0.0.1:57504 => /127.0.0.1:36959] FLUSH
05:23:58.262 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:58.262 [nioEventLoopGroup-212-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe227dbc3, /127.0.0.1:57504 => /127.0.0.1:36959] FLUSH
05:23:58.263 [nioEventLoopGroup-212-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe227dbc3, /127.0.0.1:57504 :> /127.0.0.1:36959] INACTIVE
05:23:58.263 [nioEventLoopGroup-212-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe227dbc3, /127.0.0.1:57504 :> /127.0.0.1:36959] UNREGISTERED
05:23:58.263 [nioEventLoopGroup-217-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-217-1
05:23:58.265 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:58.267 [nioEventLoopGroup-212-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdaab84e2, /127.0.0.1:57506 => /127.0.0.1:36959] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36959
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
05:23:58.268 [nioEventLoopGroup-212-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
05:23:58.268 [nioEventLoopGroup-212-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdaab84e2, /127.0.0.1:57506 => /127.0.0.1:36959] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:58.268 [nioEventLoopGroup-212-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdaab84e2, /127.0.0.1:57506 => /127.0.0.1:36959] FLUSH
05:23:58.269 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:58.269 [nioEventLoopGroup-212-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdaab84e2, /127.0.0.1:57506 => /127.0.0.1:36959] FLUSH
05:23:58.269 [nioEventLoopGroup-212-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdaab84e2, /127.0.0.1:57506 :> /127.0.0.1:36959] INACTIVE
05:23:58.269 [nioEventLoopGroup-212-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdaab84e2, /127.0.0.1:57506 :> /127.0.0.1:36959] UNREGISTERED
05:23:58.269 [nioEventLoopGroup-218-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-218-1
05:23:58.269 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:58.271 [nioEventLoopGroup-212-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x59ef8401, /127.0.0.1:57508 => /127.0.0.1:36959] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36959
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:23:58.272 [nioEventLoopGroup-212-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
05:23:58.272 [nioEventLoopGroup-212-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x59ef8401, /127.0.0.1:57508 => /127.0.0.1:36959] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:58.272 [nioEventLoopGroup-212-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x59ef8401, /127.0.0.1:57508 => /127.0.0.1:36959] FLUSH
05:23:58.273 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:58.273 [nioEventLoopGroup-212-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x59ef8401, /127.0.0.1:57508 => /127.0.0.1:36959] FLUSH
05:23:58.273 [nioEventLoopGroup-219-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-219-1
05:23:58.273 [nioEventLoopGroup-212-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x59ef8401, /127.0.0.1:57508 :> /127.0.0.1:36959] INACTIVE
05:23:58.273 [nioEventLoopGroup-212-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x59ef8401, /127.0.0.1:57508 :> /127.0.0.1:36959] UNREGISTERED
05:23:58.274 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:58.276 [nioEventLoopGroup-212-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x625cf29b, /127.0.0.1:57510 => /127.0.0.1:36959] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36959
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:58.276 [nioEventLoopGroup-212-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
05:23:58.276 [nioEventLoopGroup-212-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x625cf29b, /127.0.0.1:57510 => /127.0.0.1:36959] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:58.276 [nioEventLoopGroup-212-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x625cf29b, /127.0.0.1:57510 => /127.0.0.1:36959] FLUSH
05:23:58.277 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:58.277 [nioEventLoopGroup-212-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x625cf29b, /127.0.0.1:57510 => /127.0.0.1:36959] FLUSH
05:23:58.277 [nioEventLoopGroup-212-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x625cf29b, /127.0.0.1:57510 :> /127.0.0.1:36959] INACTIVE
05:23:58.277 [nioEventLoopGroup-220-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-220-1
05:23:58.277 [nioEventLoopGroup-212-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x625cf29b, /127.0.0.1:57510 :> /127.0.0.1:36959] UNREGISTERED
05:23:58.278 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:58.280 [nioEventLoopGroup-212-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd05635cc, /127.0.0.1:57512 => /127.0.0.1:36959] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36959
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:58.280 [nioEventLoopGroup-212-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
05:23:58.280 [nioEventLoopGroup-212-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd05635cc, /127.0.0.1:57512 => /127.0.0.1:36959] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:58.280 [nioEventLoopGroup-212-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd05635cc, /127.0.0.1:57512 => /127.0.0.1:36959] FLUSH
05:23:58.281 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:58.281 [nioEventLoopGroup-212-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd05635cc, /127.0.0.1:57512 => /127.0.0.1:36959] FLUSH
05:23:58.281 [nioEventLoopGroup-212-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd05635cc, /127.0.0.1:57512 :> /127.0.0.1:36959] INACTIVE
05:23:58.281 [nioEventLoopGroup-212-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd05635cc, /127.0.0.1:57512 :> /127.0.0.1:36959] UNREGISTERED
05:23:58.281 [nioEventLoopGroup-221-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-221-1
05:23:58.282 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:58.285 [nioEventLoopGroup-212-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x33a5890a, /127.0.0.1:57514 => /127.0.0.1:36959] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36959
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:58.286 [nioEventLoopGroup-212-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
05:23:58.286 [nioEventLoopGroup-212-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x33a5890a, /127.0.0.1:57514 => /127.0.0.1:36959] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:58.286 [nioEventLoopGroup-212-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x33a5890a, /127.0.0.1:57514 => /127.0.0.1:36959] FLUSH
05:23:58.287 [nioEventLoopGroup-212-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x33a5890a, /127.0.0.1:57514 => /127.0.0.1:36959] FLUSH
05:23:58.288 [nioEventLoopGroup-212-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x33a5890a, /127.0.0.1:57514 :> /127.0.0.1:36959] INACTIVE
05:23:58.288 [nioEventLoopGroup-212-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x33a5890a, /127.0.0.1:57514 :> /127.0.0.1:36959] UNREGISTERED
05:23:58.291 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:58.292 [nioEventLoopGroup-222-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-222-1
05:23:58.294 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:58.298 [nioEventLoopGroup-212-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7f2b1f53, /127.0.0.1:57518 => /127.0.0.1:36959] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36959
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:58.298 [nioEventLoopGroup-212-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
05:23:58.299 [nioEventLoopGroup-212-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7f2b1f53, /127.0.0.1:57518 => /127.0.0.1:36959] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:58.299 [nioEventLoopGroup-212-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7f2b1f53, /127.0.0.1:57518 => /127.0.0.1:36959] FLUSH
05:23:58.299 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:58.299 [nioEventLoopGroup-223-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-223-1
05:23:58.299 [nioEventLoopGroup-212-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7f2b1f53, /127.0.0.1:57518 => /127.0.0.1:36959] FLUSH
05:23:58.300 [nioEventLoopGroup-212-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7f2b1f53, /127.0.0.1:57518 :> /127.0.0.1:36959] INACTIVE
05:23:58.301 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:58.304 [nioEventLoopGroup-212-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7f2b1f53, /127.0.0.1:57518 :> /127.0.0.1:36959] UNREGISTERED
05:23:58.305 [nioEventLoopGroup-212-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc4608c5c, /127.0.0.1:57524 => /127.0.0.1:36959] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36959
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:58.306 [nioEventLoopGroup-212-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
05:23:58.306 [nioEventLoopGroup-212-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc4608c5c, /127.0.0.1:57524 => /127.0.0.1:36959] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:58.306 [nioEventLoopGroup-212-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc4608c5c, /127.0.0.1:57524 => /127.0.0.1:36959] FLUSH
05:23:58.307 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:58.307 [nioEventLoopGroup-212-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc4608c5c, /127.0.0.1:57524 => /127.0.0.1:36959] FLUSH
05:23:58.307 [nioEventLoopGroup-224-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-224-1
05:23:58.307 [nioEventLoopGroup-212-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc4608c5c, /127.0.0.1:57524 :> /127.0.0.1:36959] INACTIVE
05:23:58.307 [nioEventLoopGroup-212-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc4608c5c, /127.0.0.1:57524 :> /127.0.0.1:36959] UNREGISTERED
05:23:58.307 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:58.318 [nioEventLoopGroup-212-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0106967c, /127.0.0.1:57528 => /127.0.0.1:36959] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36959
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:58.319 [nioEventLoopGroup-212-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:23:58.319 [nioEventLoopGroup-212-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0106967c, /127.0.0.1:57528 => /127.0.0.1:36959] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:58.319 [nioEventLoopGroup-212-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0106967c, /127.0.0.1:57528 => /127.0.0.1:36959] FLUSH
05:23:58.319 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:58.319 [nioEventLoopGroup-212-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0106967c, /127.0.0.1:57528 => /127.0.0.1:36959] FLUSH
05:23:58.319 [nioEventLoopGroup-212-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0106967c, /127.0.0.1:57528 :> /127.0.0.1:36959] INACTIVE
05:23:58.319 [nioEventLoopGroup-212-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0106967c, /127.0.0.1:57528 :> /127.0.0.1:36959] UNREGISTERED
05:23:58.319 [nioEventLoopGroup-225-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-225-1
05:23:58.327 [nioEventLoopGroup-212-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd62fb36c, /127.0.0.1:57536 => /127.0.0.1:36959] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status300 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_102
Host: localhost:36959
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
05:23:58.327 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36959" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:58.328 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36959" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:58.328 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36959" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:23:58.329 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36959" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:58.329 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36959" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:58.329 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36959" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:58.329 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36959" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:58.330 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36959" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:58.330 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36959" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status300"
}
05:23:58.331 [nioEventLoopGroup-212-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 300
}
for request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36959" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:23:58.331 [nioEventLoopGroup-212-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd62fb36c, /127.0.0.1:57536 => /127.0.0.1:36959] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 300 Multiple Choices
Content-Length: 0
Connection: keep-alive, 0B
05:23:58.331 [nioEventLoopGroup-212-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd62fb36c, /127.0.0.1:57536 => /127.0.0.1:36959] FLUSH
05:23:58.332 [nioEventLoopGroup-212-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd62fb36c, /127.0.0.1:57536 => /127.0.0.1:36959] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status300 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_102
Host: localhost:36959
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
05:23:58.333 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36959" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:58.333 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36959" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:58.333 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36959" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:23:58.333 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36959" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:58.334 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36959" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:58.334 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36959" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:58.334 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36959" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:58.334 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36959" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:58.334 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36959" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status300"
}
05:23:58.335 [nioEventLoopGroup-212-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 300
}
for request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36959" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:23:58.335 [nioEventLoopGroup-212-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd62fb36c, /127.0.0.1:57536 => /127.0.0.1:36959] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 300 Multiple Choices
Content-Length: 0
Connection: keep-alive, 0B
05:23:58.335 [nioEventLoopGroup-212-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd62fb36c, /127.0.0.1:57536 => /127.0.0.1:36959] FLUSH
05:23:58.335 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
05:23:58.338 [nioEventLoopGroup-212-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc5d89519, /127.0.0.1:57544 => /127.0.0.1:36959] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:36959
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
05:23:58.338 [nioEventLoopGroup-212-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc5d89519, /127.0.0.1:57544 => /127.0.0.1:36959] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:58.338 [nioEventLoopGroup-212-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc5d89519, /127.0.0.1:57544 => /127.0.0.1:36959] FLUSH
05:23:58.338 [nioEventLoopGroup-212-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc5d89519, /127.0.0.1:57544 => /127.0.0.1:36959] CLOSE()
05:23:58.339 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:58.339 [nioEventLoopGroup-226-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-226-1
05:23:58.343 [nioEventLoopGroup-196-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x22fb52f5, /127.0.0.1:40988 :> /127.0.0.1:42415] FLUSH
05:23:58.343 [nioEventLoopGroup-196-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x22fb52f5, /127.0.0.1:40988 :> /127.0.0.1:42415] INACTIVE
05:23:58.343 [nioEventLoopGroup-196-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x22fb52f5, /127.0.0.1:40988 :> /127.0.0.1:42415] UNREGISTERED
05:23:58.343 [nioEventLoopGroup-196-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-15
05:23:58.350 [nioEventLoopGroup-212-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-6
05:23:58.350 [nioEventLoopGroup-212-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-1
05:23:58.350 [nioEventLoopGroup-212-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-4
05:23:58.350 [nioEventLoopGroup-212-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-10
05:23:58.350 [nioEventLoopGroup-212-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-7
05:23:58.350 [nioEventLoopGroup-212-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-5
05:23:58.350 [nioEventLoopGroup-212-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-9
05:23:58.350 [nioEventLoopGroup-212-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-2
05:23:58.350 [nioEventLoopGroup-212-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-3
05:23:58.350 [nioEventLoopGroup-212-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-8
05:23:58.350 [nioEventLoopGroup-212-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-11
05:23:58.350 [nioEventLoopGroup-212-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd62fb36c, /127.0.0.1:57536 :> /127.0.0.1:36959] INACTIVE
05:23:58.350 [nioEventLoopGroup-212-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-12
05:23:58.350 [nioEventLoopGroup-212-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-13
05:23:58.351 [nioEventLoopGroup-212-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd62fb36c, /127.0.0.1:57536 :> /127.0.0.1:36959] UNREGISTERED
05:23:58.409 [nioEventLoopGroup-180-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-15
05:23:58.409 [nioEventLoopGroup-180-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-14
05:23:58.704 [MockServer thread for port: 34447] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 34447
05:23:58.705 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:58.706 [nioEventLoopGroup-228-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb7bf568b, /127.0.0.1:53878 => /127.0.0.1:34447] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34447
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:58.707 [nioEventLoopGroup-228-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:23:58.707 [nioEventLoopGroup-228-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb7bf568b, /127.0.0.1:53878 => /127.0.0.1:34447] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:58.707 [nioEventLoopGroup-228-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb7bf568b, /127.0.0.1:53878 => /127.0.0.1:34447] FLUSH
05:23:58.708 [nioEventLoopGroup-228-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb7bf568b, /127.0.0.1:53878 => /127.0.0.1:34447] FLUSH
05:23:58.708 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:58.708 [nioEventLoopGroup-228-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb7bf568b, /127.0.0.1:53878 :> /127.0.0.1:34447] INACTIVE
05:23:58.708 [nioEventLoopGroup-228-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb7bf568b, /127.0.0.1:53878 :> /127.0.0.1:34447] UNREGISTERED
05:23:58.708 [nioEventLoopGroup-229-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-229-1
05:23:58.709 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:58.711 [nioEventLoopGroup-228-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7cd9465d, /127.0.0.1:53882 => /127.0.0.1:34447] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34447
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
05:23:58.712 [nioEventLoopGroup-228-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
05:23:58.713 [nioEventLoopGroup-228-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7cd9465d, /127.0.0.1:53882 => /127.0.0.1:34447] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:58.713 [nioEventLoopGroup-228-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7cd9465d, /127.0.0.1:53882 => /127.0.0.1:34447] FLUSH
05:23:58.713 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:58.713 [nioEventLoopGroup-228-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7cd9465d, /127.0.0.1:53882 => /127.0.0.1:34447] FLUSH
05:23:58.713 [nioEventLoopGroup-230-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-230-1
05:23:58.713 [nioEventLoopGroup-228-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7cd9465d, /127.0.0.1:53882 :> /127.0.0.1:34447] INACTIVE
05:23:58.713 [nioEventLoopGroup-228-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7cd9465d, /127.0.0.1:53882 :> /127.0.0.1:34447] UNREGISTERED
05:23:58.715 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:58.717 [nioEventLoopGroup-228-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfcd2dc79, /127.0.0.1:53886 => /127.0.0.1:34447] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34447
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:23:58.718 [nioEventLoopGroup-228-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
05:23:58.718 [nioEventLoopGroup-228-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfcd2dc79, /127.0.0.1:53886 => /127.0.0.1:34447] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:58.718 [nioEventLoopGroup-228-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfcd2dc79, /127.0.0.1:53886 => /127.0.0.1:34447] FLUSH
05:23:58.718 [nioEventLoopGroup-228-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfcd2dc79, /127.0.0.1:53886 => /127.0.0.1:34447] FLUSH
05:23:58.719 [nioEventLoopGroup-228-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfcd2dc79, /127.0.0.1:53886 :> /127.0.0.1:34447] INACTIVE
05:23:58.719 [nioEventLoopGroup-228-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfcd2dc79, /127.0.0.1:53886 :> /127.0.0.1:34447] UNREGISTERED
05:23:58.722 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:58.723 [nioEventLoopGroup-231-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-231-1
05:23:58.728 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:58.730 [nioEventLoopGroup-228-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5bf7ff5b, /127.0.0.1:53890 => /127.0.0.1:34447] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34447
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:58.731 [nioEventLoopGroup-228-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:23:58.731 [nioEventLoopGroup-228-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5bf7ff5b, /127.0.0.1:53890 => /127.0.0.1:34447] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:58.731 [nioEventLoopGroup-228-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5bf7ff5b, /127.0.0.1:53890 => /127.0.0.1:34447] FLUSH
05:23:58.731 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:58.732 [nioEventLoopGroup-228-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5bf7ff5b, /127.0.0.1:53890 => /127.0.0.1:34447] FLUSH
05:23:58.732 [nioEventLoopGroup-228-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5bf7ff5b, /127.0.0.1:53890 :> /127.0.0.1:34447] INACTIVE
05:23:58.732 [nioEventLoopGroup-228-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5bf7ff5b, /127.0.0.1:53890 :> /127.0.0.1:34447] UNREGISTERED
05:23:58.732 [nioEventLoopGroup-232-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-232-1
05:23:58.732 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:58.735 [nioEventLoopGroup-228-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe4cbad81, /127.0.0.1:53894 => /127.0.0.1:34447] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34447
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
05:23:58.736 [nioEventLoopGroup-228-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
05:23:58.736 [nioEventLoopGroup-228-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe4cbad81, /127.0.0.1:53894 => /127.0.0.1:34447] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:58.736 [nioEventLoopGroup-228-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe4cbad81, /127.0.0.1:53894 => /127.0.0.1:34447] FLUSH
05:23:58.737 [nioEventLoopGroup-228-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe4cbad81, /127.0.0.1:53894 => /127.0.0.1:34447] FLUSH
05:23:58.737 [nioEventLoopGroup-228-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe4cbad81, /127.0.0.1:53894 :> /127.0.0.1:34447] INACTIVE
05:23:58.737 [nioEventLoopGroup-228-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe4cbad81, /127.0.0.1:53894 :> /127.0.0.1:34447] UNREGISTERED
05:23:58.739 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:58.739 [nioEventLoopGroup-233-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-233-1
05:23:58.740 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:58.743 [nioEventLoopGroup-228-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2381777d, /127.0.0.1:53898 => /127.0.0.1:34447] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34447
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
05:23:58.744 [nioEventLoopGroup-228-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
05:23:58.745 [nioEventLoopGroup-228-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2381777d, /127.0.0.1:53898 => /127.0.0.1:34447] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:58.745 [nioEventLoopGroup-228-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2381777d, /127.0.0.1:53898 => /127.0.0.1:34447] FLUSH
05:23:58.745 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:58.745 [nioEventLoopGroup-234-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-234-1
05:23:58.746 [nioEventLoopGroup-228-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2381777d, /127.0.0.1:53898 => /127.0.0.1:34447] FLUSH
05:23:58.746 [nioEventLoopGroup-228-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2381777d, /127.0.0.1:53898 :> /127.0.0.1:34447] INACTIVE
05:23:58.746 [nioEventLoopGroup-228-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2381777d, /127.0.0.1:53898 :> /127.0.0.1:34447] UNREGISTERED
05:23:58.750 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:58.754 [nioEventLoopGroup-228-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x34a1082c, /127.0.0.1:53902 => /127.0.0.1:34447] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34447
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:23:58.754 [nioEventLoopGroup-228-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
05:23:58.755 [nioEventLoopGroup-228-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x34a1082c, /127.0.0.1:53902 => /127.0.0.1:34447] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:58.755 [nioEventLoopGroup-228-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x34a1082c, /127.0.0.1:53902 => /127.0.0.1:34447] FLUSH
05:23:58.755 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:58.755 [nioEventLoopGroup-228-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x34a1082c, /127.0.0.1:53902 => /127.0.0.1:34447] FLUSH
05:23:58.755 [nioEventLoopGroup-228-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x34a1082c, /127.0.0.1:53902 :> /127.0.0.1:34447] INACTIVE
05:23:58.755 [nioEventLoopGroup-228-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x34a1082c, /127.0.0.1:53902 :> /127.0.0.1:34447] UNREGISTERED
05:23:58.755 [nioEventLoopGroup-235-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-235-1
05:23:58.756 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:58.766 [nioEventLoopGroup-228-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa9573f63, /127.0.0.1:53904 => /127.0.0.1:34447] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34447
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:58.766 [nioEventLoopGroup-228-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
05:23:58.767 [nioEventLoopGroup-228-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa9573f63, /127.0.0.1:53904 => /127.0.0.1:34447] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:58.767 [nioEventLoopGroup-228-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa9573f63, /127.0.0.1:53904 => /127.0.0.1:34447] FLUSH
05:23:58.772 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:58.772 [nioEventLoopGroup-228-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa9573f63, /127.0.0.1:53904 => /127.0.0.1:34447] FLUSH
05:23:58.772 [nioEventLoopGroup-236-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-236-1
05:23:58.772 [nioEventLoopGroup-228-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa9573f63, /127.0.0.1:53904 :> /127.0.0.1:34447] INACTIVE
05:23:58.772 [nioEventLoopGroup-228-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa9573f63, /127.0.0.1:53904 :> /127.0.0.1:34447] UNREGISTERED
05:23:58.773 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:58.775 [nioEventLoopGroup-228-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc790f09b, /127.0.0.1:53910 => /127.0.0.1:34447] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34447
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:58.776 [nioEventLoopGroup-228-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
05:23:58.776 [nioEventLoopGroup-228-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc790f09b, /127.0.0.1:53910 => /127.0.0.1:34447] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:58.776 [nioEventLoopGroup-228-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc790f09b, /127.0.0.1:53910 => /127.0.0.1:34447] FLUSH
05:23:58.777 [nioEventLoopGroup-228-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc790f09b, /127.0.0.1:53910 => /127.0.0.1:34447] FLUSH
05:23:58.777 [nioEventLoopGroup-228-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc790f09b, /127.0.0.1:53910 :> /127.0.0.1:34447] INACTIVE
05:23:58.777 [nioEventLoopGroup-228-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc790f09b, /127.0.0.1:53910 :> /127.0.0.1:34447] UNREGISTERED
05:23:58.778 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:58.779 [nioEventLoopGroup-237-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-237-1
05:23:58.780 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:58.783 [nioEventLoopGroup-228-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb311c662, /127.0.0.1:53914 => /127.0.0.1:34447] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34447
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:58.784 [nioEventLoopGroup-228-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
05:23:58.784 [nioEventLoopGroup-228-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb311c662, /127.0.0.1:53914 => /127.0.0.1:34447] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:58.784 [nioEventLoopGroup-228-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb311c662, /127.0.0.1:53914 => /127.0.0.1:34447] FLUSH
05:23:58.785 [nioEventLoopGroup-228-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb311c662, /127.0.0.1:53914 => /127.0.0.1:34447] FLUSH
05:23:58.785 [nioEventLoopGroup-228-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb311c662, /127.0.0.1:53914 :> /127.0.0.1:34447] INACTIVE
05:23:58.785 [nioEventLoopGroup-228-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb311c662, /127.0.0.1:53914 :> /127.0.0.1:34447] UNREGISTERED
05:23:58.786 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:58.787 [nioEventLoopGroup-238-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-238-1
05:23:58.790 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:58.805 [nioEventLoopGroup-228-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4d45ec96, /127.0.0.1:53924 => /127.0.0.1:34447] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34447
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:58.806 [nioEventLoopGroup-228-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
05:23:58.806 [nioEventLoopGroup-228-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4d45ec96, /127.0.0.1:53924 => /127.0.0.1:34447] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:58.806 [nioEventLoopGroup-228-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4d45ec96, /127.0.0.1:53924 => /127.0.0.1:34447] FLUSH
05:23:58.807 [nioEventLoopGroup-228-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4d45ec96, /127.0.0.1:53924 => /127.0.0.1:34447] FLUSH
05:23:58.807 [nioEventLoopGroup-228-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4d45ec96, /127.0.0.1:53924 :> /127.0.0.1:34447] INACTIVE
05:23:58.807 [nioEventLoopGroup-228-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4d45ec96, /127.0.0.1:53924 :> /127.0.0.1:34447] UNREGISTERED
05:23:58.809 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:58.809 [nioEventLoopGroup-239-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-239-1
05:23:58.810 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:58.816 [nioEventLoopGroup-228-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x045346ba, /127.0.0.1:53926 => /127.0.0.1:34447] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34447
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:58.817 [nioEventLoopGroup-228-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
05:23:58.817 [nioEventLoopGroup-228-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x045346ba, /127.0.0.1:53926 => /127.0.0.1:34447] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:58.817 [nioEventLoopGroup-228-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x045346ba, /127.0.0.1:53926 => /127.0.0.1:34447] FLUSH
05:23:58.817 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:58.818 [nioEventLoopGroup-240-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-240-1
05:23:58.818 [nioEventLoopGroup-228-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x045346ba, /127.0.0.1:53926 => /127.0.0.1:34447] FLUSH
05:23:58.818 [nioEventLoopGroup-228-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x045346ba, /127.0.0.1:53926 :> /127.0.0.1:34447] INACTIVE
05:23:58.818 [nioEventLoopGroup-228-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x045346ba, /127.0.0.1:53926 :> /127.0.0.1:34447] UNREGISTERED
05:23:58.819 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:58.823 [nioEventLoopGroup-228-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8a93ece4, /127.0.0.1:53930 => /127.0.0.1:34447] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34447
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:58.824 [nioEventLoopGroup-228-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:23:58.824 [nioEventLoopGroup-228-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8a93ece4, /127.0.0.1:53930 => /127.0.0.1:34447] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:58.824 [nioEventLoopGroup-228-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8a93ece4, /127.0.0.1:53930 => /127.0.0.1:34447] FLUSH
05:23:58.825 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:58.825 [nioEventLoopGroup-228-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8a93ece4, /127.0.0.1:53930 => /127.0.0.1:34447] FLUSH
05:23:58.825 [nioEventLoopGroup-228-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8a93ece4, /127.0.0.1:53930 :> /127.0.0.1:34447] INACTIVE
05:23:58.825 [nioEventLoopGroup-228-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8a93ece4, /127.0.0.1:53930 :> /127.0.0.1:34447] UNREGISTERED
05:23:58.825 [nioEventLoopGroup-241-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-241-1
05:23:58.828 [nioEventLoopGroup-228-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdce0c10e, /127.0.0.1:53932 => /127.0.0.1:34447] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status400 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_102
Host: localhost:34447
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
05:23:58.828 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:34447" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:58.829 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:34447" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:58.829 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:34447" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:23:58.829 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:34447" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:58.830 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:34447" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:58.830 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:34447" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:58.830 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:34447" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:58.831 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:34447" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:58.831 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:34447" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:58.831 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:34447" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status400"
}
05:23:58.832 [nioEventLoopGroup-228-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 400
}
for request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:34447" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:23:58.832 [nioEventLoopGroup-228-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdce0c10e, /127.0.0.1:53932 => /127.0.0.1:34447] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 400 Bad Request
Content-Length: 0
Connection: keep-alive, 0B
05:23:58.832 [nioEventLoopGroup-228-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdce0c10e, /127.0.0.1:53932 => /127.0.0.1:34447] FLUSH
05:23:58.834 [nioEventLoopGroup-228-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdce0c10e, /127.0.0.1:53932 => /127.0.0.1:34447] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status400 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_102
Host: localhost:34447
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
05:23:58.834 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:34447" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:58.834 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:34447" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:58.834 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:34447" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:23:58.835 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:34447" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:58.835 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:34447" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:58.835 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:34447" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:58.835 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:34447" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:58.835 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:34447" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:58.836 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:34447" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:58.836 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:34447" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status400"
}
05:23:58.836 [nioEventLoopGroup-228-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 400
}
for request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:34447" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:23:58.836 [nioEventLoopGroup-228-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdce0c10e, /127.0.0.1:53932 => /127.0.0.1:34447] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 400 Bad Request
Content-Length: 0
Connection: keep-alive, 0B
05:23:58.836 [nioEventLoopGroup-228-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdce0c10e, /127.0.0.1:53932 => /127.0.0.1:34447] FLUSH
05:23:58.837 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
05:23:58.839 [nioEventLoopGroup-228-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe709f7dc, /127.0.0.1:53938 => /127.0.0.1:34447] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:34447
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
05:23:58.839 [nioEventLoopGroup-228-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe709f7dc, /127.0.0.1:53938 => /127.0.0.1:34447] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:58.839 [nioEventLoopGroup-228-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe709f7dc, /127.0.0.1:53938 => /127.0.0.1:34447] FLUSH
05:23:58.839 [nioEventLoopGroup-228-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe709f7dc, /127.0.0.1:53938 => /127.0.0.1:34447] CLOSE()
05:23:58.839 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:58.839 [nioEventLoopGroup-242-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-242-1
05:23:58.842 [nioEventLoopGroup-196-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-14
05:23:58.844 [nioEventLoopGroup-228-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-1
05:23:58.844 [nioEventLoopGroup-228-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-7
05:23:58.844 [nioEventLoopGroup-228-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-6
05:23:58.844 [nioEventLoopGroup-228-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-11
05:23:58.844 [nioEventLoopGroup-228-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-10
05:23:58.844 [nioEventLoopGroup-228-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-3
05:23:58.844 [nioEventLoopGroup-228-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-13
05:23:58.844 [nioEventLoopGroup-228-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-2
05:23:58.844 [nioEventLoopGroup-228-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-5
05:23:58.844 [nioEventLoopGroup-228-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdce0c10e, /127.0.0.1:53932 :> /127.0.0.1:34447] INACTIVE
05:23:58.844 [nioEventLoopGroup-228-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-12
05:23:58.844 [nioEventLoopGroup-228-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-8
05:23:58.844 [nioEventLoopGroup-228-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-9
05:23:58.846 [nioEventLoopGroup-228-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-4
05:23:58.846 [nioEventLoopGroup-228-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdce0c10e, /127.0.0.1:53932 :> /127.0.0.1:34447] UNREGISTERED
05:23:58.851 [nioEventLoopGroup-212-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc5d89519, /127.0.0.1:57544 :> /127.0.0.1:36959] FLUSH
05:23:58.855 [nioEventLoopGroup-212-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc5d89519, /127.0.0.1:57544 :> /127.0.0.1:36959] INACTIVE
05:23:58.855 [nioEventLoopGroup-212-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc5d89519, /127.0.0.1:57544 :> /127.0.0.1:36959] UNREGISTERED
05:23:58.855 [nioEventLoopGroup-212-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-15
05:23:59.206 [MockServer thread for port: 36555] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 36555
05:23:59.206 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:59.208 [nioEventLoopGroup-244-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x09ce6d95, /127.0.0.1:51064 => /127.0.0.1:36555] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36555
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:59.209 [nioEventLoopGroup-244-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:23:59.209 [nioEventLoopGroup-244-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x09ce6d95, /127.0.0.1:51064 => /127.0.0.1:36555] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:59.209 [nioEventLoopGroup-244-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x09ce6d95, /127.0.0.1:51064 => /127.0.0.1:36555] FLUSH
05:23:59.209 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:59.209 [nioEventLoopGroup-244-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x09ce6d95, /127.0.0.1:51064 => /127.0.0.1:36555] FLUSH
05:23:59.209 [nioEventLoopGroup-244-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x09ce6d95, /127.0.0.1:51064 :> /127.0.0.1:36555] INACTIVE
05:23:59.209 [nioEventLoopGroup-244-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x09ce6d95, /127.0.0.1:51064 :> /127.0.0.1:36555] UNREGISTERED
05:23:59.210 [nioEventLoopGroup-245-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-245-1
05:23:59.210 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:59.212 [nioEventLoopGroup-244-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x566c8bd8, /127.0.0.1:51066 => /127.0.0.1:36555] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36555
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
05:23:59.213 [nioEventLoopGroup-244-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
05:23:59.213 [nioEventLoopGroup-244-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x566c8bd8, /127.0.0.1:51066 => /127.0.0.1:36555] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:59.213 [nioEventLoopGroup-244-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x566c8bd8, /127.0.0.1:51066 => /127.0.0.1:36555] FLUSH
05:23:59.213 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:59.214 [nioEventLoopGroup-244-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x566c8bd8, /127.0.0.1:51066 => /127.0.0.1:36555] FLUSH
05:23:59.214 [nioEventLoopGroup-244-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x566c8bd8, /127.0.0.1:51066 :> /127.0.0.1:36555] INACTIVE
05:23:59.214 [nioEventLoopGroup-246-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-246-1
05:23:59.214 [nioEventLoopGroup-244-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x566c8bd8, /127.0.0.1:51066 :> /127.0.0.1:36555] UNREGISTERED
05:23:59.215 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:59.217 [nioEventLoopGroup-244-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0091f24, /127.0.0.1:51068 => /127.0.0.1:36555] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36555
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:23:59.218 [nioEventLoopGroup-244-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
05:23:59.218 [nioEventLoopGroup-244-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0091f24, /127.0.0.1:51068 => /127.0.0.1:36555] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:59.218 [nioEventLoopGroup-244-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0091f24, /127.0.0.1:51068 => /127.0.0.1:36555] FLUSH
05:23:59.218 [nioEventLoopGroup-244-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0091f24, /127.0.0.1:51068 => /127.0.0.1:36555] FLUSH
05:23:59.219 [nioEventLoopGroup-244-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0091f24, /127.0.0.1:51068 :> /127.0.0.1:36555] INACTIVE
05:23:59.219 [nioEventLoopGroup-244-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0091f24, /127.0.0.1:51068 :> /127.0.0.1:36555] UNREGISTERED
05:23:59.219 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:59.220 [nioEventLoopGroup-247-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-247-1
05:23:59.221 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:59.223 [nioEventLoopGroup-244-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbe3acae1, /127.0.0.1:51072 => /127.0.0.1:36555] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36555
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:59.224 [nioEventLoopGroup-244-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:23:59.224 [nioEventLoopGroup-244-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbe3acae1, /127.0.0.1:51072 => /127.0.0.1:36555] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:59.225 [nioEventLoopGroup-244-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbe3acae1, /127.0.0.1:51072 => /127.0.0.1:36555] FLUSH
05:23:59.225 [nioEventLoopGroup-244-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbe3acae1, /127.0.0.1:51072 => /127.0.0.1:36555] FLUSH
05:23:59.225 [nioEventLoopGroup-244-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbe3acae1, /127.0.0.1:51072 :> /127.0.0.1:36555] INACTIVE
05:23:59.225 [nioEventLoopGroup-244-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbe3acae1, /127.0.0.1:51072 :> /127.0.0.1:36555] UNREGISTERED
05:23:59.225 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:59.225 [nioEventLoopGroup-248-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-248-1
05:23:59.226 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:59.228 [nioEventLoopGroup-244-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xca328abb, /127.0.0.1:51074 => /127.0.0.1:36555] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36555
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
05:23:59.229 [nioEventLoopGroup-244-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
05:23:59.229 [nioEventLoopGroup-244-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xca328abb, /127.0.0.1:51074 => /127.0.0.1:36555] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:59.229 [nioEventLoopGroup-244-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xca328abb, /127.0.0.1:51074 => /127.0.0.1:36555] FLUSH
05:23:59.229 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:59.229 [nioEventLoopGroup-244-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xca328abb, /127.0.0.1:51074 => /127.0.0.1:36555] FLUSH
05:23:59.229 [nioEventLoopGroup-249-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-249-1
05:23:59.229 [nioEventLoopGroup-244-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xca328abb, /127.0.0.1:51074 :> /127.0.0.1:36555] INACTIVE
05:23:59.229 [nioEventLoopGroup-244-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xca328abb, /127.0.0.1:51074 :> /127.0.0.1:36555] UNREGISTERED
05:23:59.230 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:59.232 [nioEventLoopGroup-244-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5aabc36f, /127.0.0.1:51078 => /127.0.0.1:36555] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36555
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
05:23:59.232 [nioEventLoopGroup-244-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
05:23:59.232 [nioEventLoopGroup-244-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5aabc36f, /127.0.0.1:51078 => /127.0.0.1:36555] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:59.232 [nioEventLoopGroup-244-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5aabc36f, /127.0.0.1:51078 => /127.0.0.1:36555] FLUSH
05:23:59.233 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:59.233 [nioEventLoopGroup-250-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-250-1
05:23:59.233 [nioEventLoopGroup-244-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5aabc36f, /127.0.0.1:51078 => /127.0.0.1:36555] FLUSH
05:23:59.233 [nioEventLoopGroup-244-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5aabc36f, /127.0.0.1:51078 :> /127.0.0.1:36555] INACTIVE
05:23:59.233 [nioEventLoopGroup-244-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5aabc36f, /127.0.0.1:51078 :> /127.0.0.1:36555] UNREGISTERED
05:23:59.234 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:59.238 [nioEventLoopGroup-244-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12e71a91, /127.0.0.1:51080 => /127.0.0.1:36555] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36555
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:23:59.239 [nioEventLoopGroup-244-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
05:23:59.239 [nioEventLoopGroup-244-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12e71a91, /127.0.0.1:51080 => /127.0.0.1:36555] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:59.239 [nioEventLoopGroup-244-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12e71a91, /127.0.0.1:51080 => /127.0.0.1:36555] FLUSH
05:23:59.239 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:59.239 [nioEventLoopGroup-244-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12e71a91, /127.0.0.1:51080 => /127.0.0.1:36555] FLUSH
05:23:59.239 [nioEventLoopGroup-244-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12e71a91, /127.0.0.1:51080 :> /127.0.0.1:36555] INACTIVE
05:23:59.239 [nioEventLoopGroup-251-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-251-1
05:23:59.239 [nioEventLoopGroup-244-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12e71a91, /127.0.0.1:51080 :> /127.0.0.1:36555] UNREGISTERED
05:23:59.240 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:59.243 [nioEventLoopGroup-244-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe36a46d, /127.0.0.1:51084 => /127.0.0.1:36555] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36555
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:59.244 [nioEventLoopGroup-244-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
05:23:59.244 [nioEventLoopGroup-244-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe36a46d, /127.0.0.1:51084 => /127.0.0.1:36555] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:59.244 [nioEventLoopGroup-244-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe36a46d, /127.0.0.1:51084 => /127.0.0.1:36555] FLUSH
05:23:59.244 [nioEventLoopGroup-244-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe36a46d, /127.0.0.1:51084 => /127.0.0.1:36555] FLUSH
05:23:59.244 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:59.244 [nioEventLoopGroup-244-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe36a46d, /127.0.0.1:51084 :> /127.0.0.1:36555] INACTIVE
05:23:59.244 [nioEventLoopGroup-244-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe36a46d, /127.0.0.1:51084 :> /127.0.0.1:36555] UNREGISTERED
05:23:59.245 [nioEventLoopGroup-252-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-252-1
05:23:59.246 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:59.249 [nioEventLoopGroup-244-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x20e3af7c, /127.0.0.1:51088 => /127.0.0.1:36555] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36555
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:59.250 [nioEventLoopGroup-244-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
05:23:59.250 [nioEventLoopGroup-244-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x20e3af7c, /127.0.0.1:51088 => /127.0.0.1:36555] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:59.250 [nioEventLoopGroup-244-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x20e3af7c, /127.0.0.1:51088 => /127.0.0.1:36555] FLUSH
05:23:59.251 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:59.251 [nioEventLoopGroup-244-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x20e3af7c, /127.0.0.1:51088 => /127.0.0.1:36555] FLUSH
05:23:59.251 [nioEventLoopGroup-244-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x20e3af7c, /127.0.0.1:51088 :> /127.0.0.1:36555] INACTIVE
05:23:59.251 [nioEventLoopGroup-244-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x20e3af7c, /127.0.0.1:51088 :> /127.0.0.1:36555] UNREGISTERED
05:23:59.251 [nioEventLoopGroup-253-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-253-1
05:23:59.252 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:59.254 [nioEventLoopGroup-244-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf25d86fe, /127.0.0.1:51092 => /127.0.0.1:36555] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36555
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:59.254 [nioEventLoopGroup-244-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
05:23:59.255 [nioEventLoopGroup-244-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf25d86fe, /127.0.0.1:51092 => /127.0.0.1:36555] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:59.255 [nioEventLoopGroup-244-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf25d86fe, /127.0.0.1:51092 => /127.0.0.1:36555] FLUSH
05:23:59.255 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:59.255 [nioEventLoopGroup-254-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-254-1
05:23:59.256 [nioEventLoopGroup-244-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf25d86fe, /127.0.0.1:51092 => /127.0.0.1:36555] FLUSH
05:23:59.256 [nioEventLoopGroup-244-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf25d86fe, /127.0.0.1:51092 :> /127.0.0.1:36555] INACTIVE
05:23:59.256 [nioEventLoopGroup-244-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf25d86fe, /127.0.0.1:51092 :> /127.0.0.1:36555] UNREGISTERED
05:23:59.256 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:59.259 [nioEventLoopGroup-244-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x865d82b6, /127.0.0.1:51096 => /127.0.0.1:36555] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36555
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:59.259 [nioEventLoopGroup-244-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
05:23:59.259 [nioEventLoopGroup-244-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x865d82b6, /127.0.0.1:51096 => /127.0.0.1:36555] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:59.259 [nioEventLoopGroup-244-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x865d82b6, /127.0.0.1:51096 => /127.0.0.1:36555] FLUSH
05:23:59.260 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:59.260 [nioEventLoopGroup-244-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x865d82b6, /127.0.0.1:51096 => /127.0.0.1:36555] FLUSH
05:23:59.260 [nioEventLoopGroup-255-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-255-1
05:23:59.260 [nioEventLoopGroup-244-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x865d82b6, /127.0.0.1:51096 :> /127.0.0.1:36555] INACTIVE
05:23:59.260 [nioEventLoopGroup-244-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x865d82b6, /127.0.0.1:51096 :> /127.0.0.1:36555] UNREGISTERED
05:23:59.291 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:59.294 [nioEventLoopGroup-244-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8b0aafe4, /127.0.0.1:51102 => /127.0.0.1:36555] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36555
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:59.295 [nioEventLoopGroup-244-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
05:23:59.295 [nioEventLoopGroup-244-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8b0aafe4, /127.0.0.1:51102 => /127.0.0.1:36555] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:59.295 [nioEventLoopGroup-244-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8b0aafe4, /127.0.0.1:51102 => /127.0.0.1:36555] FLUSH
05:23:59.295 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:59.295 [nioEventLoopGroup-244-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8b0aafe4, /127.0.0.1:51102 => /127.0.0.1:36555] FLUSH
05:23:59.295 [nioEventLoopGroup-244-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8b0aafe4, /127.0.0.1:51102 :> /127.0.0.1:36555] INACTIVE
05:23:59.295 [nioEventLoopGroup-244-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8b0aafe4, /127.0.0.1:51102 :> /127.0.0.1:36555] UNREGISTERED
05:23:59.295 [nioEventLoopGroup-256-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-256-1
05:23:59.296 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:59.303 [nioEventLoopGroup-244-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc4fdfe4, /127.0.0.1:51108 => /127.0.0.1:36555] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36555
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:59.304 [nioEventLoopGroup-244-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:23:59.304 [nioEventLoopGroup-244-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc4fdfe4, /127.0.0.1:51108 => /127.0.0.1:36555] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:59.304 [nioEventLoopGroup-244-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc4fdfe4, /127.0.0.1:51108 => /127.0.0.1:36555] FLUSH
05:23:59.304 [nioEventLoopGroup-244-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc4fdfe4, /127.0.0.1:51108 => /127.0.0.1:36555] FLUSH
05:23:59.304 [nioEventLoopGroup-244-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc4fdfe4, /127.0.0.1:51108 :> /127.0.0.1:36555] INACTIVE
05:23:59.304 [nioEventLoopGroup-244-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc4fdfe4, /127.0.0.1:51108 :> /127.0.0.1:36555] UNREGISTERED
05:23:59.304 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:59.305 [nioEventLoopGroup-257-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-257-1
05:23:59.309 [nioEventLoopGroup-244-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x44360325, /127.0.0.1:51110 => /127.0.0.1:36555] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status500 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_102
Host: localhost:36555
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
05:23:59.309 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36555" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:59.310 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36555" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:59.310 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36555" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:23:59.310 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36555" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:59.310 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36555" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:59.314 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36555" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:59.315 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36555" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:59.316 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36555" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:59.316 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36555" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:59.317 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36555" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:59.318 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36555" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status500"
}
05:23:59.318 [nioEventLoopGroup-244-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 500
}
for request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36555" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:23:59.320 [nioEventLoopGroup-244-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x44360325, /127.0.0.1:51110 => /127.0.0.1:36555] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 500 Internal Server Error
Content-Length: 0
Connection: keep-alive, 0B
05:23:59.320 [nioEventLoopGroup-244-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x44360325, /127.0.0.1:51110 => /127.0.0.1:36555] FLUSH
05:23:59.322 [nioEventLoopGroup-244-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x44360325, /127.0.0.1:51110 => /127.0.0.1:36555] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status500 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_102
Host: localhost:36555
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
05:23:59.322 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36555" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:59.322 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36555" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:59.323 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36555" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:23:59.323 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36555" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:59.323 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36555" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:59.323 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36555" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:59.323 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36555" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:59.323 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36555" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:59.323 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36555" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:59.324 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36555" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:59.324 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36555" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status500"
}
05:23:59.324 [nioEventLoopGroup-244-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 500
}
for request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36555" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:23:59.324 [nioEventLoopGroup-244-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x44360325, /127.0.0.1:51110 => /127.0.0.1:36555] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 500 Internal Server Error
Content-Length: 0
Connection: keep-alive, 0B
05:23:59.324 [nioEventLoopGroup-244-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x44360325, /127.0.0.1:51110 => /127.0.0.1:36555] FLUSH
05:23:59.327 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
05:23:59.330 [nioEventLoopGroup-244-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbf5cfb54, /127.0.0.1:51118 => /127.0.0.1:36555] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:36555
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
05:23:59.330 [nioEventLoopGroup-244-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbf5cfb54, /127.0.0.1:51118 => /127.0.0.1:36555] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:59.331 [nioEventLoopGroup-244-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbf5cfb54, /127.0.0.1:51118 => /127.0.0.1:36555] FLUSH
05:23:59.331 [nioEventLoopGroup-244-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbf5cfb54, /127.0.0.1:51118 => /127.0.0.1:36555] CLOSE()
05:23:59.334 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:59.335 [nioEventLoopGroup-258-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-258-1
05:23:59.337 [nioEventLoopGroup-244-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-1
05:23:59.337 [nioEventLoopGroup-244-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-2
05:23:59.337 [nioEventLoopGroup-244-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-3
05:23:59.337 [nioEventLoopGroup-244-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-4
05:23:59.337 [nioEventLoopGroup-244-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-5
05:23:59.337 [nioEventLoopGroup-244-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-6
05:23:59.337 [nioEventLoopGroup-244-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-7
05:23:59.338 [nioEventLoopGroup-244-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-8
05:23:59.338 [nioEventLoopGroup-244-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-9
05:23:59.338 [nioEventLoopGroup-244-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-10
05:23:59.338 [nioEventLoopGroup-244-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-11
05:23:59.338 [nioEventLoopGroup-244-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-12
05:23:59.338 [nioEventLoopGroup-244-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-13
05:23:59.338 [nioEventLoopGroup-244-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x44360325, /127.0.0.1:51110 :> /127.0.0.1:36555] INACTIVE
05:23:59.338 [nioEventLoopGroup-244-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x44360325, /127.0.0.1:51110 :> /127.0.0.1:36555] UNREGISTERED
05:23:59.344 [nioEventLoopGroup-228-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe709f7dc, /127.0.0.1:53938 :> /127.0.0.1:34447] FLUSH
05:23:59.344 [nioEventLoopGroup-228-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe709f7dc, /127.0.0.1:53938 :> /127.0.0.1:34447] INACTIVE
05:23:59.344 [nioEventLoopGroup-228-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe709f7dc, /127.0.0.1:53938 :> /127.0.0.1:34447] UNREGISTERED
05:23:59.344 [nioEventLoopGroup-228-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-15
05:23:59.352 [nioEventLoopGroup-212-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-14
05:23:59.701 [MockServer thread for port: 41175] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 41175
05:23:59.701 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:59.704 [nioEventLoopGroup-260-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ab69c40, /127.0.0.1:43846 => /127.0.0.1:41175] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41175
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:59.704 [nioEventLoopGroup-260-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:23:59.705 [nioEventLoopGroup-260-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ab69c40, /127.0.0.1:43846 => /127.0.0.1:41175] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:59.705 [nioEventLoopGroup-260-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ab69c40, /127.0.0.1:43846 => /127.0.0.1:41175] FLUSH
05:23:59.705 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:59.705 [nioEventLoopGroup-260-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ab69c40, /127.0.0.1:43846 => /127.0.0.1:41175] FLUSH
05:23:59.705 [nioEventLoopGroup-260-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ab69c40, /127.0.0.1:43846 :> /127.0.0.1:41175] INACTIVE
05:23:59.706 [nioEventLoopGroup-260-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ab69c40, /127.0.0.1:43846 :> /127.0.0.1:41175] UNREGISTERED
05:23:59.706 [nioEventLoopGroup-261-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-261-1
05:23:59.707 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:59.709 [nioEventLoopGroup-260-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x02f93c31, /127.0.0.1:43850 => /127.0.0.1:41175] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41175
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
05:23:59.710 [nioEventLoopGroup-260-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
05:23:59.710 [nioEventLoopGroup-260-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x02f93c31, /127.0.0.1:43850 => /127.0.0.1:41175] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:59.710 [nioEventLoopGroup-260-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x02f93c31, /127.0.0.1:43850 => /127.0.0.1:41175] FLUSH
05:23:59.710 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:59.710 [nioEventLoopGroup-260-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x02f93c31, /127.0.0.1:43850 => /127.0.0.1:41175] FLUSH
05:23:59.710 [nioEventLoopGroup-260-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x02f93c31, /127.0.0.1:43850 :> /127.0.0.1:41175] INACTIVE
05:23:59.710 [nioEventLoopGroup-260-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x02f93c31, /127.0.0.1:43850 :> /127.0.0.1:41175] UNREGISTERED
05:23:59.711 [nioEventLoopGroup-262-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-262-1
05:23:59.712 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:59.715 [nioEventLoopGroup-260-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0606b30, /127.0.0.1:43852 => /127.0.0.1:41175] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41175
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:23:59.716 [nioEventLoopGroup-260-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
05:23:59.716 [nioEventLoopGroup-260-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0606b30, /127.0.0.1:43852 => /127.0.0.1:41175] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:59.716 [nioEventLoopGroup-260-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0606b30, /127.0.0.1:43852 => /127.0.0.1:41175] FLUSH
05:23:59.716 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:59.716 [nioEventLoopGroup-260-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0606b30, /127.0.0.1:43852 => /127.0.0.1:41175] FLUSH
05:23:59.716 [nioEventLoopGroup-260-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0606b30, /127.0.0.1:43852 :> /127.0.0.1:41175] INACTIVE
05:23:59.716 [nioEventLoopGroup-263-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-263-1
05:23:59.716 [nioEventLoopGroup-260-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0606b30, /127.0.0.1:43852 :> /127.0.0.1:41175] UNREGISTERED
05:23:59.717 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:59.719 [nioEventLoopGroup-260-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x672f436b, /127.0.0.1:43856 => /127.0.0.1:41175] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41175
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:59.720 [nioEventLoopGroup-260-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:23:59.720 [nioEventLoopGroup-260-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x672f436b, /127.0.0.1:43856 => /127.0.0.1:41175] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:59.720 [nioEventLoopGroup-260-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x672f436b, /127.0.0.1:43856 => /127.0.0.1:41175] FLUSH
05:23:59.721 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:59.721 [nioEventLoopGroup-260-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x672f436b, /127.0.0.1:43856 => /127.0.0.1:41175] FLUSH
05:23:59.721 [nioEventLoopGroup-260-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x672f436b, /127.0.0.1:43856 :> /127.0.0.1:41175] INACTIVE
05:23:59.721 [nioEventLoopGroup-260-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x672f436b, /127.0.0.1:43856 :> /127.0.0.1:41175] UNREGISTERED
05:23:59.721 [nioEventLoopGroup-264-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-264-1
05:23:59.721 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:59.736 [nioEventLoopGroup-260-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c0d4408, /127.0.0.1:43860 => /127.0.0.1:41175] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41175
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
05:23:59.736 [nioEventLoopGroup-260-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
05:23:59.736 [nioEventLoopGroup-260-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c0d4408, /127.0.0.1:43860 => /127.0.0.1:41175] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:59.736 [nioEventLoopGroup-260-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c0d4408, /127.0.0.1:43860 => /127.0.0.1:41175] FLUSH
05:23:59.736 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:59.737 [nioEventLoopGroup-260-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c0d4408, /127.0.0.1:43860 => /127.0.0.1:41175] FLUSH
05:23:59.737 [nioEventLoopGroup-260-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c0d4408, /127.0.0.1:43860 :> /127.0.0.1:41175] INACTIVE
05:23:59.737 [nioEventLoopGroup-260-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c0d4408, /127.0.0.1:43860 :> /127.0.0.1:41175] UNREGISTERED
05:23:59.737 [nioEventLoopGroup-265-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-265-1
05:23:59.745 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:59.747 [nioEventLoopGroup-260-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6b7a8375, /127.0.0.1:43866 => /127.0.0.1:41175] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41175
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
05:23:59.748 [nioEventLoopGroup-260-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
05:23:59.748 [nioEventLoopGroup-260-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6b7a8375, /127.0.0.1:43866 => /127.0.0.1:41175] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:59.748 [nioEventLoopGroup-260-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6b7a8375, /127.0.0.1:43866 => /127.0.0.1:41175] FLUSH
05:23:59.748 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:59.748 [nioEventLoopGroup-260-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6b7a8375, /127.0.0.1:43866 => /127.0.0.1:41175] FLUSH
05:23:59.749 [nioEventLoopGroup-260-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6b7a8375, /127.0.0.1:43866 :> /127.0.0.1:41175] INACTIVE
05:23:59.749 [nioEventLoopGroup-260-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6b7a8375, /127.0.0.1:43866 :> /127.0.0.1:41175] UNREGISTERED
05:23:59.749 [nioEventLoopGroup-266-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-266-1
05:23:59.749 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:59.753 [nioEventLoopGroup-260-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ccb6e50, /127.0.0.1:43872 => /127.0.0.1:41175] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41175
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:23:59.753 [nioEventLoopGroup-260-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
05:23:59.754 [nioEventLoopGroup-260-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ccb6e50, /127.0.0.1:43872 => /127.0.0.1:41175] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:59.754 [nioEventLoopGroup-260-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ccb6e50, /127.0.0.1:43872 => /127.0.0.1:41175] FLUSH
05:23:59.754 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:59.754 [nioEventLoopGroup-260-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ccb6e50, /127.0.0.1:43872 => /127.0.0.1:41175] FLUSH
05:23:59.754 [nioEventLoopGroup-267-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-267-1
05:23:59.755 [nioEventLoopGroup-260-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ccb6e50, /127.0.0.1:43872 :> /127.0.0.1:41175] INACTIVE
05:23:59.755 [nioEventLoopGroup-260-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ccb6e50, /127.0.0.1:43872 :> /127.0.0.1:41175] UNREGISTERED
05:23:59.755 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:59.765 [nioEventLoopGroup-260-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x389b2b11, /127.0.0.1:43878 => /127.0.0.1:41175] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41175
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:59.765 [nioEventLoopGroup-260-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
05:23:59.765 [nioEventLoopGroup-260-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x389b2b11, /127.0.0.1:43878 => /127.0.0.1:41175] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:59.765 [nioEventLoopGroup-260-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x389b2b11, /127.0.0.1:43878 => /127.0.0.1:41175] FLUSH
05:23:59.766 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:59.766 [nioEventLoopGroup-260-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x389b2b11, /127.0.0.1:43878 => /127.0.0.1:41175] FLUSH
05:23:59.766 [nioEventLoopGroup-260-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x389b2b11, /127.0.0.1:43878 :> /127.0.0.1:41175] INACTIVE
05:23:59.766 [nioEventLoopGroup-260-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x389b2b11, /127.0.0.1:43878 :> /127.0.0.1:41175] UNREGISTERED
05:23:59.766 [nioEventLoopGroup-268-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-268-1
05:23:59.767 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:59.768 [nioEventLoopGroup-260-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x89b71adb, /127.0.0.1:43882 => /127.0.0.1:41175] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41175
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:59.769 [nioEventLoopGroup-260-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
05:23:59.769 [nioEventLoopGroup-260-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x89b71adb, /127.0.0.1:43882 => /127.0.0.1:41175] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:59.769 [nioEventLoopGroup-260-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x89b71adb, /127.0.0.1:43882 => /127.0.0.1:41175] FLUSH
05:23:59.770 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:59.770 [nioEventLoopGroup-260-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x89b71adb, /127.0.0.1:43882 => /127.0.0.1:41175] FLUSH
05:23:59.770 [nioEventLoopGroup-260-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x89b71adb, /127.0.0.1:43882 :> /127.0.0.1:41175] INACTIVE
05:23:59.770 [nioEventLoopGroup-269-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-269-1
05:23:59.773 [nioEventLoopGroup-260-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x89b71adb, /127.0.0.1:43882 :> /127.0.0.1:41175] UNREGISTERED
05:23:59.774 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:59.777 [nioEventLoopGroup-260-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x183aea21, /127.0.0.1:43888 => /127.0.0.1:41175] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41175
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:59.778 [nioEventLoopGroup-260-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
05:23:59.778 [nioEventLoopGroup-260-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x183aea21, /127.0.0.1:43888 => /127.0.0.1:41175] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:59.778 [nioEventLoopGroup-260-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x183aea21, /127.0.0.1:43888 => /127.0.0.1:41175] FLUSH
05:23:59.779 [nioEventLoopGroup-260-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x183aea21, /127.0.0.1:43888 => /127.0.0.1:41175] FLUSH
05:23:59.779 [nioEventLoopGroup-260-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x183aea21, /127.0.0.1:43888 :> /127.0.0.1:41175] INACTIVE
05:23:59.780 [nioEventLoopGroup-260-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x183aea21, /127.0.0.1:43888 :> /127.0.0.1:41175] UNREGISTERED
05:23:59.780 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:59.780 [nioEventLoopGroup-270-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-270-1
05:23:59.780 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:59.786 [nioEventLoopGroup-260-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xca95c805, /127.0.0.1:43894 => /127.0.0.1:41175] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41175
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:59.786 [nioEventLoopGroup-260-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
05:23:59.787 [nioEventLoopGroup-260-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xca95c805, /127.0.0.1:43894 => /127.0.0.1:41175] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:59.787 [nioEventLoopGroup-260-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xca95c805, /127.0.0.1:43894 => /127.0.0.1:41175] FLUSH
05:23:59.787 [nioEventLoopGroup-260-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xca95c805, /127.0.0.1:43894 => /127.0.0.1:41175] FLUSH
05:23:59.787 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:59.787 [nioEventLoopGroup-271-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-271-1
05:23:59.788 [nioEventLoopGroup-260-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xca95c805, /127.0.0.1:43894 :> /127.0.0.1:41175] INACTIVE
05:23:59.788 [nioEventLoopGroup-260-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xca95c805, /127.0.0.1:43894 :> /127.0.0.1:41175] UNREGISTERED
05:23:59.789 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:59.791 [nioEventLoopGroup-260-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0813b98f, /127.0.0.1:43900 => /127.0.0.1:41175] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41175
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:59.792 [nioEventLoopGroup-260-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
05:23:59.792 [nioEventLoopGroup-260-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0813b98f, /127.0.0.1:43900 => /127.0.0.1:41175] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:59.792 [nioEventLoopGroup-260-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0813b98f, /127.0.0.1:43900 => /127.0.0.1:41175] FLUSH
05:23:59.793 [nioEventLoopGroup-260-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0813b98f, /127.0.0.1:43900 => /127.0.0.1:41175] FLUSH
05:23:59.793 [nioEventLoopGroup-260-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0813b98f, /127.0.0.1:43900 :> /127.0.0.1:41175] INACTIVE
05:23:59.793 [nioEventLoopGroup-260-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0813b98f, /127.0.0.1:43900 :> /127.0.0.1:41175] UNREGISTERED
05:23:59.798 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:59.799 [nioEventLoopGroup-272-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-272-1
05:23:59.800 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:23:59.803 [nioEventLoopGroup-260-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0c0d263b, /127.0.0.1:43904 => /127.0.0.1:41175] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41175
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:23:59.804 [nioEventLoopGroup-260-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:23:59.804 [nioEventLoopGroup-260-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0c0d263b, /127.0.0.1:43904 => /127.0.0.1:41175] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:59.804 [nioEventLoopGroup-260-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0c0d263b, /127.0.0.1:43904 => /127.0.0.1:41175] FLUSH
05:23:59.804 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:59.807 [nioEventLoopGroup-260-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0c0d263b, /127.0.0.1:43904 => /127.0.0.1:41175] FLUSH
05:23:59.807 [nioEventLoopGroup-260-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0c0d263b, /127.0.0.1:43904 :> /127.0.0.1:41175] INACTIVE
05:23:59.807 [nioEventLoopGroup-260-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0c0d263b, /127.0.0.1:43904 :> /127.0.0.1:41175] UNREGISTERED
05:23:59.807 [nioEventLoopGroup-273-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-273-1
05:23:59.815 [nioEventLoopGroup-260-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3ae0bd6c, /127.0.0.1:43908 => /127.0.0.1:41175] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status200 HTTP/1.1
Host: localhost:41175
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_102)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
05:23:59.816 [nioEventLoopGroup-260-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41175" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:59.816 [nioEventLoopGroup-260-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41175" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:59.817 [nioEventLoopGroup-260-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41175" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:23:59.819 [nioEventLoopGroup-260-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41175" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:59.820 [nioEventLoopGroup-260-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41175" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:59.820 [nioEventLoopGroup-260-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41175" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:59.820 [nioEventLoopGroup-260-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41175" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:59.821 [nioEventLoopGroup-260-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41175" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status200"
}
05:23:59.826 [nioEventLoopGroup-260-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200
}
for request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41175" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:23:59.826 [nioEventLoopGroup-260-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3ae0bd6c, /127.0.0.1:43908 => /127.0.0.1:41175] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 200 OK
Content-Length: 0
Connection: keep-alive, 0B
05:23:59.826 [nioEventLoopGroup-260-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3ae0bd6c, /127.0.0.1:43908 => /127.0.0.1:41175] FLUSH
05:23:59.833 [nioEventLoopGroup-260-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe8c540bf, /127.0.0.1:43916 => /127.0.0.1:41175] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status200 HTTP/1.1
Host: localhost:41175
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_102)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
05:23:59.833 [nioEventLoopGroup-260-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41175" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:59.833 [nioEventLoopGroup-260-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41175" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:59.833 [nioEventLoopGroup-260-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41175" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:23:59.834 [nioEventLoopGroup-260-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41175" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:59.834 [nioEventLoopGroup-260-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41175" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:59.834 [nioEventLoopGroup-260-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41175" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:59.834 [nioEventLoopGroup-260-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41175" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:23:59.834 [nioEventLoopGroup-260-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41175" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status200"
}
05:23:59.835 [nioEventLoopGroup-260-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200
}
for request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41175" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:23:59.835 [nioEventLoopGroup-260-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe8c540bf, /127.0.0.1:43916 => /127.0.0.1:41175] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 200 OK
Content-Length: 0
Connection: keep-alive, 0B
05:23:59.835 [nioEventLoopGroup-260-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe8c540bf, /127.0.0.1:43916 => /127.0.0.1:41175] FLUSH
05:23:59.836 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
05:23:59.838 [nioEventLoopGroup-244-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbf5cfb54, /127.0.0.1:51118 :> /127.0.0.1:36555] FLUSH
05:23:59.838 [nioEventLoopGroup-244-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbf5cfb54, /127.0.0.1:51118 :> /127.0.0.1:36555] INACTIVE
05:23:59.838 [nioEventLoopGroup-244-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbf5cfb54, /127.0.0.1:51118 :> /127.0.0.1:36555] UNREGISTERED
05:23:59.838 [nioEventLoopGroup-244-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-15
05:23:59.838 [nioEventLoopGroup-260-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa678a55b, /127.0.0.1:43920 => /127.0.0.1:41175] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:41175
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
05:23:59.839 [nioEventLoopGroup-260-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa678a55b, /127.0.0.1:43920 => /127.0.0.1:41175] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:23:59.839 [nioEventLoopGroup-260-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa678a55b, /127.0.0.1:43920 => /127.0.0.1:41175] FLUSH
05:23:59.839 [nioEventLoopGroup-260-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa678a55b, /127.0.0.1:43920 => /127.0.0.1:41175] CLOSE()
05:23:59.839 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:23:59.840 [nioEventLoopGroup-274-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-274-1
05:23:59.840 [nioEventLoopGroup-260-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-7
05:23:59.840 [nioEventLoopGroup-260-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-5
05:23:59.840 [nioEventLoopGroup-260-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-9
05:23:59.840 [nioEventLoopGroup-260-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-4
05:23:59.840 [nioEventLoopGroup-260-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-6
05:23:59.840 [nioEventLoopGroup-260-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-12
05:23:59.840 [nioEventLoopGroup-260-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-11
05:23:59.840 [nioEventLoopGroup-260-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3ae0bd6c, /127.0.0.1:43908 :> /127.0.0.1:41175] INACTIVE
05:23:59.840 [nioEventLoopGroup-260-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe8c540bf, /127.0.0.1:43916 :> /127.0.0.1:41175] INACTIVE
05:23:59.840 [nioEventLoopGroup-260-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3ae0bd6c, /127.0.0.1:43908 :> /127.0.0.1:41175] UNREGISTERED
05:23:59.840 [nioEventLoopGroup-260-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe8c540bf, /127.0.0.1:43916 :> /127.0.0.1:41175] UNREGISTERED
05:23:59.840 [nioEventLoopGroup-260-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-1
05:23:59.841 [nioEventLoopGroup-260-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-2
05:23:59.841 [nioEventLoopGroup-260-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-3
05:23:59.841 [nioEventLoopGroup-260-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-10
05:23:59.842 [nioEventLoopGroup-260-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-8
05:23:59.843 [nioEventLoopGroup-260-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-13
05:23:59.856 [nioEventLoopGroup-228-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-14
05:24:00.196 [MockServer thread for port: 42605] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 42605
05:24:00.196 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:00.198 [nioEventLoopGroup-276-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x16856844, /127.0.0.1:47782 => /127.0.0.1:42605] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42605
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:00.199 [nioEventLoopGroup-276-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:00.199 [nioEventLoopGroup-276-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x16856844, /127.0.0.1:47782 => /127.0.0.1:42605] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:00.199 [nioEventLoopGroup-276-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x16856844, /127.0.0.1:47782 => /127.0.0.1:42605] FLUSH
05:24:00.199 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:00.199 [nioEventLoopGroup-276-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x16856844, /127.0.0.1:47782 => /127.0.0.1:42605] FLUSH
05:24:00.199 [nioEventLoopGroup-276-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x16856844, /127.0.0.1:47782 :> /127.0.0.1:42605] INACTIVE
05:24:00.199 [nioEventLoopGroup-276-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x16856844, /127.0.0.1:47782 :> /127.0.0.1:42605] UNREGISTERED
05:24:00.199 [nioEventLoopGroup-277-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-277-1
05:24:00.200 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:00.202 [nioEventLoopGroup-276-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc19be49, /127.0.0.1:47784 => /127.0.0.1:42605] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42605
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:00.202 [nioEventLoopGroup-276-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
05:24:00.202 [nioEventLoopGroup-276-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc19be49, /127.0.0.1:47784 => /127.0.0.1:42605] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:00.202 [nioEventLoopGroup-276-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc19be49, /127.0.0.1:47784 => /127.0.0.1:42605] FLUSH
05:24:00.203 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:00.203 [nioEventLoopGroup-276-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc19be49, /127.0.0.1:47784 => /127.0.0.1:42605] FLUSH
05:24:00.203 [nioEventLoopGroup-276-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc19be49, /127.0.0.1:47784 :> /127.0.0.1:42605] INACTIVE
05:24:00.203 [nioEventLoopGroup-276-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc19be49, /127.0.0.1:47784 :> /127.0.0.1:42605] UNREGISTERED
05:24:00.203 [nioEventLoopGroup-278-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-278-1
05:24:00.203 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:00.205 [nioEventLoopGroup-276-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6f0f4116, /127.0.0.1:47786 => /127.0.0.1:42605] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42605
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:00.205 [nioEventLoopGroup-276-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
05:24:00.205 [nioEventLoopGroup-276-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6f0f4116, /127.0.0.1:47786 => /127.0.0.1:42605] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:00.205 [nioEventLoopGroup-276-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6f0f4116, /127.0.0.1:47786 => /127.0.0.1:42605] FLUSH
05:24:00.205 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:00.205 [nioEventLoopGroup-276-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6f0f4116, /127.0.0.1:47786 => /127.0.0.1:42605] FLUSH
05:24:00.205 [nioEventLoopGroup-276-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6f0f4116, /127.0.0.1:47786 :> /127.0.0.1:42605] INACTIVE
05:24:00.205 [nioEventLoopGroup-276-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6f0f4116, /127.0.0.1:47786 :> /127.0.0.1:42605] UNREGISTERED
05:24:00.205 [nioEventLoopGroup-279-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-279-1
05:24:00.207 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:00.208 [nioEventLoopGroup-276-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8dd562bb, /127.0.0.1:47788 => /127.0.0.1:42605] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42605
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:00.209 [nioEventLoopGroup-276-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:00.209 [nioEventLoopGroup-276-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8dd562bb, /127.0.0.1:47788 => /127.0.0.1:42605] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:00.209 [nioEventLoopGroup-276-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8dd562bb, /127.0.0.1:47788 => /127.0.0.1:42605] FLUSH
05:24:00.209 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:00.209 [nioEventLoopGroup-276-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8dd562bb, /127.0.0.1:47788 => /127.0.0.1:42605] FLUSH
05:24:00.209 [nioEventLoopGroup-276-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8dd562bb, /127.0.0.1:47788 :> /127.0.0.1:42605] INACTIVE
05:24:00.209 [nioEventLoopGroup-276-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8dd562bb, /127.0.0.1:47788 :> /127.0.0.1:42605] UNREGISTERED
05:24:00.209 [nioEventLoopGroup-280-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-280-1
05:24:00.212 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:00.214 [nioEventLoopGroup-276-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12ea8f16, /127.0.0.1:47792 => /127.0.0.1:42605] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42605
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
05:24:00.214 [nioEventLoopGroup-276-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
05:24:00.214 [nioEventLoopGroup-276-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12ea8f16, /127.0.0.1:47792 => /127.0.0.1:42605] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:00.215 [nioEventLoopGroup-276-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12ea8f16, /127.0.0.1:47792 => /127.0.0.1:42605] FLUSH
05:24:00.218 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:00.218 [nioEventLoopGroup-276-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12ea8f16, /127.0.0.1:47792 => /127.0.0.1:42605] FLUSH
05:24:00.218 [nioEventLoopGroup-281-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-281-1
05:24:00.219 [nioEventLoopGroup-276-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12ea8f16, /127.0.0.1:47792 :> /127.0.0.1:42605] INACTIVE
05:24:00.219 [nioEventLoopGroup-276-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12ea8f16, /127.0.0.1:47792 :> /127.0.0.1:42605] UNREGISTERED
05:24:00.219 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:00.221 [nioEventLoopGroup-276-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4a2d076b, /127.0.0.1:47798 => /127.0.0.1:42605] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42605
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
05:24:00.222 [nioEventLoopGroup-276-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
05:24:00.222 [nioEventLoopGroup-276-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4a2d076b, /127.0.0.1:47798 => /127.0.0.1:42605] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:00.222 [nioEventLoopGroup-276-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4a2d076b, /127.0.0.1:47798 => /127.0.0.1:42605] FLUSH
05:24:00.223 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:00.223 [nioEventLoopGroup-276-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4a2d076b, /127.0.0.1:47798 => /127.0.0.1:42605] FLUSH
05:24:00.223 [nioEventLoopGroup-276-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4a2d076b, /127.0.0.1:47798 :> /127.0.0.1:42605] INACTIVE
05:24:00.223 [nioEventLoopGroup-276-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4a2d076b, /127.0.0.1:47798 :> /127.0.0.1:42605] UNREGISTERED
05:24:00.223 [nioEventLoopGroup-282-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-282-1
05:24:00.224 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:00.226 [nioEventLoopGroup-276-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcff53321, /127.0.0.1:47802 => /127.0.0.1:42605] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42605
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:00.227 [nioEventLoopGroup-276-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
05:24:00.227 [nioEventLoopGroup-276-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcff53321, /127.0.0.1:47802 => /127.0.0.1:42605] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:00.227 [nioEventLoopGroup-276-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcff53321, /127.0.0.1:47802 => /127.0.0.1:42605] FLUSH
05:24:00.227 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:00.227 [nioEventLoopGroup-276-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcff53321, /127.0.0.1:47802 => /127.0.0.1:42605] FLUSH
05:24:00.227 [nioEventLoopGroup-283-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-283-1
05:24:00.227 [nioEventLoopGroup-276-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcff53321, /127.0.0.1:47802 :> /127.0.0.1:42605] INACTIVE
05:24:00.227 [nioEventLoopGroup-276-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcff53321, /127.0.0.1:47802 :> /127.0.0.1:42605] UNREGISTERED
05:24:00.228 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:00.230 [nioEventLoopGroup-276-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbfc3f1ba, /127.0.0.1:47808 => /127.0.0.1:42605] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42605
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:00.230 [nioEventLoopGroup-276-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
05:24:00.232 [nioEventLoopGroup-276-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbfc3f1ba, /127.0.0.1:47808 => /127.0.0.1:42605] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:00.233 [nioEventLoopGroup-276-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbfc3f1ba, /127.0.0.1:47808 => /127.0.0.1:42605] FLUSH
05:24:00.233 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:00.233 [nioEventLoopGroup-276-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbfc3f1ba, /127.0.0.1:47808 => /127.0.0.1:42605] FLUSH
05:24:00.233 [nioEventLoopGroup-284-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-284-1
05:24:00.233 [nioEventLoopGroup-276-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbfc3f1ba, /127.0.0.1:47808 :> /127.0.0.1:42605] INACTIVE
05:24:00.233 [nioEventLoopGroup-276-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbfc3f1ba, /127.0.0.1:47808 :> /127.0.0.1:42605] UNREGISTERED
05:24:00.235 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:00.240 [nioEventLoopGroup-276-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeb11fa78, /127.0.0.1:47812 => /127.0.0.1:42605] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42605
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:00.241 [nioEventLoopGroup-276-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
05:24:00.241 [nioEventLoopGroup-276-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeb11fa78, /127.0.0.1:47812 => /127.0.0.1:42605] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:00.241 [nioEventLoopGroup-276-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeb11fa78, /127.0.0.1:47812 => /127.0.0.1:42605] FLUSH
05:24:00.241 [nioEventLoopGroup-276-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeb11fa78, /127.0.0.1:47812 => /127.0.0.1:42605] FLUSH
05:24:00.241 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:00.241 [nioEventLoopGroup-276-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeb11fa78, /127.0.0.1:47812 :> /127.0.0.1:42605] INACTIVE
05:24:00.241 [nioEventLoopGroup-276-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeb11fa78, /127.0.0.1:47812 :> /127.0.0.1:42605] UNREGISTERED
05:24:00.241 [nioEventLoopGroup-285-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-285-1
05:24:00.243 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:00.246 [nioEventLoopGroup-276-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa396704d, /127.0.0.1:47818 => /127.0.0.1:42605] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42605
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:00.247 [nioEventLoopGroup-276-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
05:24:00.248 [nioEventLoopGroup-276-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa396704d, /127.0.0.1:47818 => /127.0.0.1:42605] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:00.248 [nioEventLoopGroup-276-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa396704d, /127.0.0.1:47818 => /127.0.0.1:42605] FLUSH
05:24:00.248 [nioEventLoopGroup-276-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa396704d, /127.0.0.1:47818 => /127.0.0.1:42605] FLUSH
05:24:00.248 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:00.248 [nioEventLoopGroup-286-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-286-1
05:24:00.248 [nioEventLoopGroup-276-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa396704d, /127.0.0.1:47818 :> /127.0.0.1:42605] INACTIVE
05:24:00.248 [nioEventLoopGroup-276-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa396704d, /127.0.0.1:47818 :> /127.0.0.1:42605] UNREGISTERED
05:24:00.249 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:00.251 [nioEventLoopGroup-276-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3bdd150c, /127.0.0.1:47820 => /127.0.0.1:42605] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42605
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:00.252 [nioEventLoopGroup-276-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
05:24:00.252 [nioEventLoopGroup-276-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3bdd150c, /127.0.0.1:47820 => /127.0.0.1:42605] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:00.252 [nioEventLoopGroup-276-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3bdd150c, /127.0.0.1:47820 => /127.0.0.1:42605] FLUSH
05:24:00.252 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:00.252 [nioEventLoopGroup-276-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3bdd150c, /127.0.0.1:47820 => /127.0.0.1:42605] FLUSH
05:24:00.252 [nioEventLoopGroup-276-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3bdd150c, /127.0.0.1:47820 :> /127.0.0.1:42605] INACTIVE
05:24:00.252 [nioEventLoopGroup-276-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3bdd150c, /127.0.0.1:47820 :> /127.0.0.1:42605] UNREGISTERED
05:24:00.253 [nioEventLoopGroup-287-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-287-1
05:24:00.254 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:00.259 [nioEventLoopGroup-276-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x341d04f0, /127.0.0.1:47826 => /127.0.0.1:42605] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42605
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:00.259 [nioEventLoopGroup-276-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
05:24:00.260 [nioEventLoopGroup-276-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x341d04f0, /127.0.0.1:47826 => /127.0.0.1:42605] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:00.260 [nioEventLoopGroup-276-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x341d04f0, /127.0.0.1:47826 => /127.0.0.1:42605] FLUSH
05:24:00.260 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:00.260 [nioEventLoopGroup-288-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-288-1
05:24:00.260 [nioEventLoopGroup-276-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x341d04f0, /127.0.0.1:47826 => /127.0.0.1:42605] FLUSH
05:24:00.260 [nioEventLoopGroup-276-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x341d04f0, /127.0.0.1:47826 :> /127.0.0.1:42605] INACTIVE
05:24:00.260 [nioEventLoopGroup-276-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x341d04f0, /127.0.0.1:47826 :> /127.0.0.1:42605] UNREGISTERED
05:24:00.262 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:00.267 [nioEventLoopGroup-276-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeb3b2bfb, /127.0.0.1:47832 => /127.0.0.1:42605] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42605
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:00.269 [nioEventLoopGroup-276-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:00.270 [nioEventLoopGroup-276-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeb3b2bfb, /127.0.0.1:47832 => /127.0.0.1:42605] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:00.270 [nioEventLoopGroup-276-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeb3b2bfb, /127.0.0.1:47832 => /127.0.0.1:42605] FLUSH
05:24:00.271 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:00.283 [nioEventLoopGroup-276-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3a5dc8b7, /127.0.0.1:47846 => /127.0.0.1:42605] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status300 HTTP/1.1
Host: localhost:42605
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_102)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
05:24:00.284 [nioEventLoopGroup-276-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42605" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:00.284 [nioEventLoopGroup-276-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42605" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:00.285 [nioEventLoopGroup-276-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42605" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:24:00.285 [nioEventLoopGroup-276-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42605" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:00.285 [nioEventLoopGroup-276-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42605" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:00.285 [nioEventLoopGroup-276-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42605" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:00.285 [nioEventLoopGroup-276-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42605" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:00.285 [nioEventLoopGroup-276-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42605" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:00.285 [nioEventLoopGroup-276-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42605" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status300"
}
05:24:00.286 [nioEventLoopGroup-276-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 300
}
for request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42605" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:24:00.286 [nioEventLoopGroup-276-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3a5dc8b7, /127.0.0.1:47846 => /127.0.0.1:42605] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 300 Multiple Choices
Content-Length: 0
Connection: keep-alive, 0B
05:24:00.286 [nioEventLoopGroup-276-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3a5dc8b7, /127.0.0.1:47846 => /127.0.0.1:42605] FLUSH
05:24:00.288 [nioEventLoopGroup-289-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-289-1
05:24:00.289 [nioEventLoopGroup-276-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeb3b2bfb, /127.0.0.1:47832 => /127.0.0.1:42605] FLUSH
05:24:00.289 [nioEventLoopGroup-276-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeb3b2bfb, /127.0.0.1:47832 :> /127.0.0.1:42605] INACTIVE
05:24:00.289 [nioEventLoopGroup-276-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeb3b2bfb, /127.0.0.1:47832 :> /127.0.0.1:42605] UNREGISTERED
05:24:00.291 [nioEventLoopGroup-276-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6ee4dc5a, /127.0.0.1:47848 => /127.0.0.1:42605] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status300 HTTP/1.1
Host: localhost:42605
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_102)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
05:24:00.292 [nioEventLoopGroup-276-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42605" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:00.292 [nioEventLoopGroup-276-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42605" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:00.292 [nioEventLoopGroup-276-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42605" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:24:00.292 [nioEventLoopGroup-276-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42605" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:00.293 [nioEventLoopGroup-276-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42605" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:00.293 [nioEventLoopGroup-276-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42605" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:00.294 [nioEventLoopGroup-276-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42605" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:00.295 [nioEventLoopGroup-276-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42605" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:00.296 [nioEventLoopGroup-276-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42605" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status300"
}
05:24:00.296 [nioEventLoopGroup-276-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 300
}
for request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42605" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:24:00.296 [nioEventLoopGroup-276-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6ee4dc5a, /127.0.0.1:47848 => /127.0.0.1:42605] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 300 Multiple Choices
Content-Length: 0
Connection: keep-alive, 0B
05:24:00.296 [nioEventLoopGroup-276-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6ee4dc5a, /127.0.0.1:47848 => /127.0.0.1:42605] FLUSH
05:24:00.297 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
05:24:00.299 [nioEventLoopGroup-276-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x826d6e66, /127.0.0.1:47852 => /127.0.0.1:42605] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:42605
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
05:24:00.299 [nioEventLoopGroup-276-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x826d6e66, /127.0.0.1:47852 => /127.0.0.1:42605] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:00.300 [nioEventLoopGroup-276-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x826d6e66, /127.0.0.1:47852 => /127.0.0.1:42605] FLUSH
05:24:00.300 [nioEventLoopGroup-276-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x826d6e66, /127.0.0.1:47852 => /127.0.0.1:42605] CLOSE()
05:24:00.300 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:00.301 [nioEventLoopGroup-290-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-290-1
05:24:00.303 [nioEventLoopGroup-276-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-1
05:24:00.303 [nioEventLoopGroup-276-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-7
05:24:00.303 [nioEventLoopGroup-276-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-3
05:24:00.303 [nioEventLoopGroup-276-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-6
05:24:00.303 [nioEventLoopGroup-276-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-11
05:24:00.303 [nioEventLoopGroup-276-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-8
05:24:00.303 [nioEventLoopGroup-276-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-5
05:24:00.303 [nioEventLoopGroup-276-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-13
05:24:00.303 [nioEventLoopGroup-276-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-2
05:24:00.303 [nioEventLoopGroup-276-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-9
05:24:00.303 [nioEventLoopGroup-276-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-10
05:24:00.303 [nioEventLoopGroup-276-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-12
05:24:00.304 [nioEventLoopGroup-276-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3a5dc8b7, /127.0.0.1:47846 :> /127.0.0.1:42605] INACTIVE
05:24:00.304 [nioEventLoopGroup-276-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3a5dc8b7, /127.0.0.1:47846 :> /127.0.0.1:42605] UNREGISTERED
05:24:00.304 [nioEventLoopGroup-276-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6ee4dc5a, /127.0.0.1:47848 :> /127.0.0.1:42605] INACTIVE
05:24:00.304 [nioEventLoopGroup-276-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6ee4dc5a, /127.0.0.1:47848 :> /127.0.0.1:42605] UNREGISTERED
05:24:00.304 [nioEventLoopGroup-276-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-4
05:24:00.339 [nioEventLoopGroup-244-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-14
05:24:00.340 [nioEventLoopGroup-260-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa678a55b, /127.0.0.1:43920 :> /127.0.0.1:41175] FLUSH
05:24:00.340 [nioEventLoopGroup-260-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa678a55b, /127.0.0.1:43920 :> /127.0.0.1:41175] INACTIVE
05:24:00.340 [nioEventLoopGroup-260-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa678a55b, /127.0.0.1:43920 :> /127.0.0.1:41175] UNREGISTERED
05:24:00.341 [nioEventLoopGroup-260-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-16
05:24:00.654 [MockServer thread for port: 41155] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 41155
05:24:00.655 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:00.656 [nioEventLoopGroup-292-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x31780303, /127.0.0.1:52246 => /127.0.0.1:41155] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41155
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:00.657 [nioEventLoopGroup-292-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:00.657 [nioEventLoopGroup-292-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x31780303, /127.0.0.1:52246 => /127.0.0.1:41155] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:00.657 [nioEventLoopGroup-292-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x31780303, /127.0.0.1:52246 => /127.0.0.1:41155] FLUSH
05:24:00.657 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:00.657 [nioEventLoopGroup-292-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x31780303, /127.0.0.1:52246 => /127.0.0.1:41155] FLUSH
05:24:00.657 [nioEventLoopGroup-292-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x31780303, /127.0.0.1:52246 :> /127.0.0.1:41155] INACTIVE
05:24:00.657 [nioEventLoopGroup-292-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x31780303, /127.0.0.1:52246 :> /127.0.0.1:41155] UNREGISTERED
05:24:00.657 [nioEventLoopGroup-293-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-293-1
05:24:00.659 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:00.661 [nioEventLoopGroup-292-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa0d0f4a8, /127.0.0.1:52248 => /127.0.0.1:41155] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41155
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:00.661 [nioEventLoopGroup-292-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
05:24:00.661 [nioEventLoopGroup-292-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa0d0f4a8, /127.0.0.1:52248 => /127.0.0.1:41155] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:00.661 [nioEventLoopGroup-292-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa0d0f4a8, /127.0.0.1:52248 => /127.0.0.1:41155] FLUSH
05:24:00.661 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:00.662 [nioEventLoopGroup-292-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa0d0f4a8, /127.0.0.1:52248 => /127.0.0.1:41155] FLUSH
05:24:00.662 [nioEventLoopGroup-292-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa0d0f4a8, /127.0.0.1:52248 :> /127.0.0.1:41155] INACTIVE
05:24:00.662 [nioEventLoopGroup-292-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa0d0f4a8, /127.0.0.1:52248 :> /127.0.0.1:41155] UNREGISTERED
05:24:00.662 [nioEventLoopGroup-294-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-294-1
05:24:00.662 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:00.664 [nioEventLoopGroup-292-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa7b3c145, /127.0.0.1:52250 => /127.0.0.1:41155] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41155
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:00.664 [nioEventLoopGroup-292-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
05:24:00.664 [nioEventLoopGroup-292-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa7b3c145, /127.0.0.1:52250 => /127.0.0.1:41155] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:00.664 [nioEventLoopGroup-292-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa7b3c145, /127.0.0.1:52250 => /127.0.0.1:41155] FLUSH
05:24:00.664 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:00.664 [nioEventLoopGroup-292-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa7b3c145, /127.0.0.1:52250 => /127.0.0.1:41155] FLUSH
05:24:00.664 [nioEventLoopGroup-292-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa7b3c145, /127.0.0.1:52250 :> /127.0.0.1:41155] INACTIVE
05:24:00.665 [nioEventLoopGroup-292-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa7b3c145, /127.0.0.1:52250 :> /127.0.0.1:41155] UNREGISTERED
05:24:00.665 [nioEventLoopGroup-295-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-295-1
05:24:00.665 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:00.667 [nioEventLoopGroup-292-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5558feb, /127.0.0.1:52252 => /127.0.0.1:41155] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41155
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:00.668 [nioEventLoopGroup-292-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:00.668 [nioEventLoopGroup-292-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5558feb, /127.0.0.1:52252 => /127.0.0.1:41155] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:00.668 [nioEventLoopGroup-292-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5558feb, /127.0.0.1:52252 => /127.0.0.1:41155] FLUSH
05:24:00.668 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:00.668 [nioEventLoopGroup-292-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5558feb, /127.0.0.1:52252 => /127.0.0.1:41155] FLUSH
05:24:00.668 [nioEventLoopGroup-292-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5558feb, /127.0.0.1:52252 :> /127.0.0.1:41155] INACTIVE
05:24:00.668 [nioEventLoopGroup-292-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5558feb, /127.0.0.1:52252 :> /127.0.0.1:41155] UNREGISTERED
05:24:00.668 [nioEventLoopGroup-296-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-296-1
05:24:00.669 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:00.671 [nioEventLoopGroup-292-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdf3fda24, /127.0.0.1:52256 => /127.0.0.1:41155] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41155
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
05:24:00.672 [nioEventLoopGroup-292-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
05:24:00.672 [nioEventLoopGroup-292-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdf3fda24, /127.0.0.1:52256 => /127.0.0.1:41155] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:00.672 [nioEventLoopGroup-292-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdf3fda24, /127.0.0.1:52256 => /127.0.0.1:41155] FLUSH
05:24:00.673 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:00.673 [nioEventLoopGroup-292-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdf3fda24, /127.0.0.1:52256 => /127.0.0.1:41155] FLUSH
05:24:00.673 [nioEventLoopGroup-292-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdf3fda24, /127.0.0.1:52256 :> /127.0.0.1:41155] INACTIVE
05:24:00.673 [nioEventLoopGroup-292-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdf3fda24, /127.0.0.1:52256 :> /127.0.0.1:41155] UNREGISTERED
05:24:00.673 [nioEventLoopGroup-297-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-297-1
05:24:00.673 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:00.675 [nioEventLoopGroup-292-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7579f675, /127.0.0.1:52260 => /127.0.0.1:41155] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41155
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
05:24:00.676 [nioEventLoopGroup-292-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
05:24:00.676 [nioEventLoopGroup-292-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7579f675, /127.0.0.1:52260 => /127.0.0.1:41155] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:00.676 [nioEventLoopGroup-292-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7579f675, /127.0.0.1:52260 => /127.0.0.1:41155] FLUSH
05:24:00.676 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:00.676 [nioEventLoopGroup-292-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7579f675, /127.0.0.1:52260 => /127.0.0.1:41155] FLUSH
05:24:00.676 [nioEventLoopGroup-298-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-298-1
05:24:00.677 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:00.678 [nioEventLoopGroup-292-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7579f675, /127.0.0.1:52260 :> /127.0.0.1:41155] INACTIVE
05:24:00.678 [nioEventLoopGroup-292-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7579f675, /127.0.0.1:52260 :> /127.0.0.1:41155] UNREGISTERED
05:24:00.680 [nioEventLoopGroup-292-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7948504b, /127.0.0.1:52264 => /127.0.0.1:41155] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41155
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:00.680 [nioEventLoopGroup-292-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
05:24:00.681 [nioEventLoopGroup-292-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7948504b, /127.0.0.1:52264 => /127.0.0.1:41155] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:00.681 [nioEventLoopGroup-292-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7948504b, /127.0.0.1:52264 => /127.0.0.1:41155] FLUSH
05:24:00.681 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:00.681 [nioEventLoopGroup-299-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-299-1
05:24:00.681 [nioEventLoopGroup-292-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7948504b, /127.0.0.1:52264 => /127.0.0.1:41155] FLUSH
05:24:00.681 [nioEventLoopGroup-292-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7948504b, /127.0.0.1:52264 :> /127.0.0.1:41155] INACTIVE
05:24:00.681 [nioEventLoopGroup-292-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7948504b, /127.0.0.1:52264 :> /127.0.0.1:41155] UNREGISTERED
05:24:00.682 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:00.685 [nioEventLoopGroup-292-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x82f55d02, /127.0.0.1:52268 => /127.0.0.1:41155] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41155
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:00.686 [nioEventLoopGroup-292-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
05:24:00.686 [nioEventLoopGroup-292-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x82f55d02, /127.0.0.1:52268 => /127.0.0.1:41155] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:00.686 [nioEventLoopGroup-292-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x82f55d02, /127.0.0.1:52268 => /127.0.0.1:41155] FLUSH
05:24:00.686 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:00.686 [nioEventLoopGroup-292-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x82f55d02, /127.0.0.1:52268 => /127.0.0.1:41155] FLUSH
05:24:00.686 [nioEventLoopGroup-300-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-300-1
05:24:00.686 [nioEventLoopGroup-292-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x82f55d02, /127.0.0.1:52268 :> /127.0.0.1:41155] INACTIVE
05:24:00.686 [nioEventLoopGroup-292-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x82f55d02, /127.0.0.1:52268 :> /127.0.0.1:41155] UNREGISTERED
05:24:00.687 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:00.690 [nioEventLoopGroup-292-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc5dc9723, /127.0.0.1:52272 => /127.0.0.1:41155] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41155
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:00.691 [nioEventLoopGroup-292-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
05:24:00.691 [nioEventLoopGroup-292-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc5dc9723, /127.0.0.1:52272 => /127.0.0.1:41155] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:00.691 [nioEventLoopGroup-292-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc5dc9723, /127.0.0.1:52272 => /127.0.0.1:41155] FLUSH
05:24:00.691 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:00.691 [nioEventLoopGroup-301-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-301-1
05:24:00.691 [nioEventLoopGroup-292-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc5dc9723, /127.0.0.1:52272 => /127.0.0.1:41155] FLUSH
05:24:00.692 [nioEventLoopGroup-292-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc5dc9723, /127.0.0.1:52272 :> /127.0.0.1:41155] INACTIVE
05:24:00.692 [nioEventLoopGroup-292-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc5dc9723, /127.0.0.1:52272 :> /127.0.0.1:41155] UNREGISTERED
05:24:00.692 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:00.696 [nioEventLoopGroup-292-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x46a7c40f, /127.0.0.1:52276 => /127.0.0.1:41155] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41155
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:00.697 [nioEventLoopGroup-292-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
05:24:00.697 [nioEventLoopGroup-292-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x46a7c40f, /127.0.0.1:52276 => /127.0.0.1:41155] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:00.697 [nioEventLoopGroup-292-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x46a7c40f, /127.0.0.1:52276 => /127.0.0.1:41155] FLUSH
05:24:00.697 [nioEventLoopGroup-292-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x46a7c40f, /127.0.0.1:52276 => /127.0.0.1:41155] FLUSH
05:24:00.697 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:00.697 [nioEventLoopGroup-292-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x46a7c40f, /127.0.0.1:52276 :> /127.0.0.1:41155] INACTIVE
05:24:00.697 [nioEventLoopGroup-292-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x46a7c40f, /127.0.0.1:52276 :> /127.0.0.1:41155] UNREGISTERED
05:24:00.697 [nioEventLoopGroup-302-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-302-1
05:24:00.698 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:00.703 [nioEventLoopGroup-292-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ef555ac, /127.0.0.1:52280 => /127.0.0.1:41155] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41155
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:00.703 [nioEventLoopGroup-292-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
05:24:00.703 [nioEventLoopGroup-292-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ef555ac, /127.0.0.1:52280 => /127.0.0.1:41155] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:00.703 [nioEventLoopGroup-292-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ef555ac, /127.0.0.1:52280 => /127.0.0.1:41155] FLUSH
05:24:00.704 [nioEventLoopGroup-292-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ef555ac, /127.0.0.1:52280 => /127.0.0.1:41155] FLUSH
05:24:00.704 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:00.704 [nioEventLoopGroup-292-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ef555ac, /127.0.0.1:52280 :> /127.0.0.1:41155] INACTIVE
05:24:00.704 [nioEventLoopGroup-292-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ef555ac, /127.0.0.1:52280 :> /127.0.0.1:41155] UNREGISTERED
05:24:00.704 [nioEventLoopGroup-303-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-303-1
05:24:00.705 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:00.709 [nioEventLoopGroup-292-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf1328d4, /127.0.0.1:52284 => /127.0.0.1:41155] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41155
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:00.710 [nioEventLoopGroup-292-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
05:24:00.710 [nioEventLoopGroup-292-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf1328d4, /127.0.0.1:52284 => /127.0.0.1:41155] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:00.710 [nioEventLoopGroup-292-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf1328d4, /127.0.0.1:52284 => /127.0.0.1:41155] FLUSH
05:24:00.715 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:00.715 [nioEventLoopGroup-292-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf1328d4, /127.0.0.1:52284 => /127.0.0.1:41155] FLUSH
05:24:00.716 [nioEventLoopGroup-292-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf1328d4, /127.0.0.1:52284 :> /127.0.0.1:41155] INACTIVE
05:24:00.716 [nioEventLoopGroup-292-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf1328d4, /127.0.0.1:52284 :> /127.0.0.1:41155] UNREGISTERED
05:24:00.716 [nioEventLoopGroup-304-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-304-1
05:24:00.727 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:00.732 [nioEventLoopGroup-292-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbf930290, /127.0.0.1:52286 => /127.0.0.1:41155] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41155
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:00.733 [nioEventLoopGroup-292-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:00.733 [nioEventLoopGroup-292-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbf930290, /127.0.0.1:52286 => /127.0.0.1:41155] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:00.733 [nioEventLoopGroup-292-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbf930290, /127.0.0.1:52286 => /127.0.0.1:41155] FLUSH
05:24:00.733 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:00.734 [nioEventLoopGroup-305-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-305-1
05:24:00.734 [nioEventLoopGroup-292-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbf930290, /127.0.0.1:52286 => /127.0.0.1:41155] FLUSH
05:24:00.734 [nioEventLoopGroup-292-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbf930290, /127.0.0.1:52286 :> /127.0.0.1:41155] INACTIVE
05:24:00.734 [nioEventLoopGroup-292-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbf930290, /127.0.0.1:52286 :> /127.0.0.1:41155] UNREGISTERED
05:24:00.744 [nioEventLoopGroup-292-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5825170, /127.0.0.1:52294 => /127.0.0.1:41155] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status400 HTTP/1.1
Host: localhost:41155
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_102)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
05:24:00.745 [nioEventLoopGroup-292-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41155" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:00.746 [nioEventLoopGroup-292-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41155" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:00.747 [nioEventLoopGroup-292-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41155" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:24:00.747 [nioEventLoopGroup-292-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41155" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:00.747 [nioEventLoopGroup-292-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41155" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:00.747 [nioEventLoopGroup-292-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41155" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:00.747 [nioEventLoopGroup-292-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41155" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:00.747 [nioEventLoopGroup-292-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41155" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:00.747 [nioEventLoopGroup-292-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41155" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:00.748 [nioEventLoopGroup-292-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41155" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status400"
}
05:24:00.748 [nioEventLoopGroup-292-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 400
}
for request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41155" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:24:00.748 [nioEventLoopGroup-292-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5825170, /127.0.0.1:52294 => /127.0.0.1:41155] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 400 Bad Request
Content-Length: 0
Connection: keep-alive, 0B
05:24:00.748 [nioEventLoopGroup-292-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5825170, /127.0.0.1:52294 => /127.0.0.1:41155] FLUSH
05:24:00.754 [nioEventLoopGroup-292-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7821ad75, /127.0.0.1:52298 => /127.0.0.1:41155] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status400 HTTP/1.1
Host: localhost:41155
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_102)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
05:24:00.754 [nioEventLoopGroup-292-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41155" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:00.755 [nioEventLoopGroup-292-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41155" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:00.755 [nioEventLoopGroup-292-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41155" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:24:00.756 [nioEventLoopGroup-292-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41155" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:00.756 [nioEventLoopGroup-292-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41155" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:00.757 [nioEventLoopGroup-292-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41155" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:00.757 [nioEventLoopGroup-292-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41155" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:00.757 [nioEventLoopGroup-292-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41155" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:00.757 [nioEventLoopGroup-292-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41155" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:00.757 [nioEventLoopGroup-292-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41155" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status400"
}
05:24:00.758 [nioEventLoopGroup-292-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 400
}
for request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41155" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:24:00.758 [nioEventLoopGroup-292-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7821ad75, /127.0.0.1:52298 => /127.0.0.1:41155] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 400 Bad Request
Content-Length: 0
Connection: keep-alive, 0B
05:24:00.758 [nioEventLoopGroup-292-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7821ad75, /127.0.0.1:52298 => /127.0.0.1:41155] FLUSH
05:24:00.759 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
05:24:00.761 [nioEventLoopGroup-292-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe053a866, /127.0.0.1:52306 => /127.0.0.1:41155] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:41155
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
05:24:00.762 [nioEventLoopGroup-292-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe053a866, /127.0.0.1:52306 => /127.0.0.1:41155] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:00.762 [nioEventLoopGroup-292-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe053a866, /127.0.0.1:52306 => /127.0.0.1:41155] FLUSH
05:24:00.762 [nioEventLoopGroup-292-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe053a866, /127.0.0.1:52306 => /127.0.0.1:41155] CLOSE()
05:24:00.762 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:00.762 [nioEventLoopGroup-306-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-306-1
05:24:00.763 [nioEventLoopGroup-292-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-7
05:24:00.763 [nioEventLoopGroup-292-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-6
05:24:00.763 [nioEventLoopGroup-292-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-4
05:24:00.763 [nioEventLoopGroup-292-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-1
05:24:00.763 [nioEventLoopGroup-292-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-8
05:24:00.763 [nioEventLoopGroup-292-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-5
05:24:00.763 [nioEventLoopGroup-292-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-10
05:24:00.763 [nioEventLoopGroup-292-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-11
05:24:00.764 [nioEventLoopGroup-292-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-12
05:24:00.764 [nioEventLoopGroup-292-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7821ad75, /127.0.0.1:52298 :> /127.0.0.1:41155] INACTIVE
05:24:00.764 [nioEventLoopGroup-292-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-13
05:24:00.764 [nioEventLoopGroup-292-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5825170, /127.0.0.1:52294 :> /127.0.0.1:41155] INACTIVE
05:24:00.764 [nioEventLoopGroup-292-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-3
05:24:00.764 [nioEventLoopGroup-292-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-2
05:24:00.764 [nioEventLoopGroup-292-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7821ad75, /127.0.0.1:52298 :> /127.0.0.1:41155] UNREGISTERED
05:24:00.764 [nioEventLoopGroup-292-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5825170, /127.0.0.1:52294 :> /127.0.0.1:41155] UNREGISTERED
05:24:00.766 [nioEventLoopGroup-292-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-9
05:24:00.803 [nioEventLoopGroup-276-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x826d6e66, /127.0.0.1:47852 :> /127.0.0.1:42605] FLUSH
05:24:00.803 [nioEventLoopGroup-276-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x826d6e66, /127.0.0.1:47852 :> /127.0.0.1:42605] INACTIVE
05:24:00.803 [nioEventLoopGroup-276-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x826d6e66, /127.0.0.1:47852 :> /127.0.0.1:42605] UNREGISTERED
05:24:00.803 [nioEventLoopGroup-276-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-16
05:24:00.842 [nioEventLoopGroup-260-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-14
05:24:00.842 [nioEventLoopGroup-260-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-15
05:24:01.147 [MockServer thread for port: 35837] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 35837
05:24:01.148 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:01.150 [nioEventLoopGroup-308-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xddb225f0, /127.0.0.1:54172 => /127.0.0.1:35837] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35837
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:01.150 [nioEventLoopGroup-308-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:01.151 [nioEventLoopGroup-308-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xddb225f0, /127.0.0.1:54172 => /127.0.0.1:35837] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:01.151 [nioEventLoopGroup-308-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xddb225f0, /127.0.0.1:54172 => /127.0.0.1:35837] FLUSH
05:24:01.151 [nioEventLoopGroup-308-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xddb225f0, /127.0.0.1:54172 => /127.0.0.1:35837] FLUSH
05:24:01.151 [nioEventLoopGroup-308-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xddb225f0, /127.0.0.1:54172 :> /127.0.0.1:35837] INACTIVE
05:24:01.151 [nioEventLoopGroup-308-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xddb225f0, /127.0.0.1:54172 :> /127.0.0.1:35837] UNREGISTERED
05:24:01.151 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:01.151 [nioEventLoopGroup-309-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-309-1
05:24:01.152 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:01.155 [nioEventLoopGroup-308-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfee64e82, /127.0.0.1:54178 => /127.0.0.1:35837] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35837
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:01.156 [nioEventLoopGroup-308-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
05:24:01.156 [nioEventLoopGroup-308-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfee64e82, /127.0.0.1:54178 => /127.0.0.1:35837] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:01.157 [nioEventLoopGroup-308-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfee64e82, /127.0.0.1:54178 => /127.0.0.1:35837] FLUSH
05:24:01.157 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:01.157 [nioEventLoopGroup-308-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfee64e82, /127.0.0.1:54178 => /127.0.0.1:35837] FLUSH
05:24:01.157 [nioEventLoopGroup-308-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfee64e82, /127.0.0.1:54178 :> /127.0.0.1:35837] INACTIVE
05:24:01.157 [nioEventLoopGroup-308-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfee64e82, /127.0.0.1:54178 :> /127.0.0.1:35837] UNREGISTERED
05:24:01.157 [nioEventLoopGroup-310-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-310-1
05:24:01.167 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:01.170 [nioEventLoopGroup-308-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x716cb763, /127.0.0.1:54184 => /127.0.0.1:35837] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35837
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:01.172 [nioEventLoopGroup-308-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
05:24:01.172 [nioEventLoopGroup-308-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x716cb763, /127.0.0.1:54184 => /127.0.0.1:35837] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:01.172 [nioEventLoopGroup-308-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x716cb763, /127.0.0.1:54184 => /127.0.0.1:35837] FLUSH
05:24:01.172 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:01.172 [nioEventLoopGroup-308-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x716cb763, /127.0.0.1:54184 => /127.0.0.1:35837] FLUSH
05:24:01.172 [nioEventLoopGroup-308-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x716cb763, /127.0.0.1:54184 :> /127.0.0.1:35837] INACTIVE
05:24:01.173 [nioEventLoopGroup-308-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x716cb763, /127.0.0.1:54184 :> /127.0.0.1:35837] UNREGISTERED
05:24:01.173 [nioEventLoopGroup-311-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-311-1
05:24:01.174 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:01.177 [nioEventLoopGroup-308-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe973cb0, /127.0.0.1:54188 => /127.0.0.1:35837] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35837
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:01.177 [nioEventLoopGroup-308-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:01.177 [nioEventLoopGroup-308-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe973cb0, /127.0.0.1:54188 => /127.0.0.1:35837] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:01.178 [nioEventLoopGroup-308-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe973cb0, /127.0.0.1:54188 => /127.0.0.1:35837] FLUSH
05:24:01.178 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:01.178 [nioEventLoopGroup-312-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-312-1
05:24:01.178 [nioEventLoopGroup-308-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe973cb0, /127.0.0.1:54188 => /127.0.0.1:35837] FLUSH
05:24:01.178 [nioEventLoopGroup-308-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe973cb0, /127.0.0.1:54188 :> /127.0.0.1:35837] INACTIVE
05:24:01.178 [nioEventLoopGroup-308-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe973cb0, /127.0.0.1:54188 :> /127.0.0.1:35837] UNREGISTERED
05:24:01.179 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:01.182 [nioEventLoopGroup-308-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6b450722, /127.0.0.1:54190 => /127.0.0.1:35837] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35837
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
05:24:01.182 [nioEventLoopGroup-308-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
05:24:01.183 [nioEventLoopGroup-308-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6b450722, /127.0.0.1:54190 => /127.0.0.1:35837] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:01.183 [nioEventLoopGroup-308-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6b450722, /127.0.0.1:54190 => /127.0.0.1:35837] FLUSH
05:24:01.183 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:01.183 [nioEventLoopGroup-308-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6b450722, /127.0.0.1:54190 => /127.0.0.1:35837] FLUSH
05:24:01.183 [nioEventLoopGroup-308-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6b450722, /127.0.0.1:54190 :> /127.0.0.1:35837] INACTIVE
05:24:01.183 [nioEventLoopGroup-308-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6b450722, /127.0.0.1:54190 :> /127.0.0.1:35837] UNREGISTERED
05:24:01.183 [nioEventLoopGroup-313-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-313-1
05:24:01.186 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:01.191 [nioEventLoopGroup-308-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x09bf2500, /127.0.0.1:54194 => /127.0.0.1:35837] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35837
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
05:24:01.192 [nioEventLoopGroup-308-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
05:24:01.192 [nioEventLoopGroup-308-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x09bf2500, /127.0.0.1:54194 => /127.0.0.1:35837] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:01.192 [nioEventLoopGroup-308-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x09bf2500, /127.0.0.1:54194 => /127.0.0.1:35837] FLUSH
05:24:01.192 [nioEventLoopGroup-308-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x09bf2500, /127.0.0.1:54194 => /127.0.0.1:35837] FLUSH
05:24:01.192 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:01.192 [nioEventLoopGroup-308-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x09bf2500, /127.0.0.1:54194 :> /127.0.0.1:35837] INACTIVE
05:24:01.192 [nioEventLoopGroup-308-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x09bf2500, /127.0.0.1:54194 :> /127.0.0.1:35837] UNREGISTERED
05:24:01.193 [nioEventLoopGroup-314-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-314-1
05:24:01.193 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:01.196 [nioEventLoopGroup-308-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfeb8f92a, /127.0.0.1:54198 => /127.0.0.1:35837] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35837
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:01.196 [nioEventLoopGroup-308-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
05:24:01.196 [nioEventLoopGroup-308-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfeb8f92a, /127.0.0.1:54198 => /127.0.0.1:35837] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:01.196 [nioEventLoopGroup-308-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfeb8f92a, /127.0.0.1:54198 => /127.0.0.1:35837] FLUSH
05:24:01.199 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:01.199 [nioEventLoopGroup-308-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfeb8f92a, /127.0.0.1:54198 => /127.0.0.1:35837] FLUSH
05:24:01.199 [nioEventLoopGroup-308-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfeb8f92a, /127.0.0.1:54198 :> /127.0.0.1:35837] INACTIVE
05:24:01.199 [nioEventLoopGroup-308-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfeb8f92a, /127.0.0.1:54198 :> /127.0.0.1:35837] UNREGISTERED
05:24:01.199 [nioEventLoopGroup-315-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-315-1
05:24:01.201 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:01.204 [nioEventLoopGroup-308-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf3ff770, /127.0.0.1:54204 => /127.0.0.1:35837] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35837
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:01.205 [nioEventLoopGroup-308-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
05:24:01.205 [nioEventLoopGroup-308-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf3ff770, /127.0.0.1:54204 => /127.0.0.1:35837] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:01.205 [nioEventLoopGroup-308-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf3ff770, /127.0.0.1:54204 => /127.0.0.1:35837] FLUSH
05:24:01.206 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:01.206 [nioEventLoopGroup-308-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf3ff770, /127.0.0.1:54204 => /127.0.0.1:35837] FLUSH
05:24:01.206 [nioEventLoopGroup-308-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf3ff770, /127.0.0.1:54204 :> /127.0.0.1:35837] INACTIVE
05:24:01.206 [nioEventLoopGroup-308-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf3ff770, /127.0.0.1:54204 :> /127.0.0.1:35837] UNREGISTERED
05:24:01.206 [nioEventLoopGroup-316-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-316-1
05:24:01.207 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:01.216 [nioEventLoopGroup-308-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5b76ac8, /127.0.0.1:54208 => /127.0.0.1:35837] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35837
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:01.217 [nioEventLoopGroup-308-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
05:24:01.218 [nioEventLoopGroup-308-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5b76ac8, /127.0.0.1:54208 => /127.0.0.1:35837] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:01.218 [nioEventLoopGroup-308-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5b76ac8, /127.0.0.1:54208 => /127.0.0.1:35837] FLUSH
05:24:01.218 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:01.218 [nioEventLoopGroup-317-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-317-1
05:24:01.219 [nioEventLoopGroup-308-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5b76ac8, /127.0.0.1:54208 => /127.0.0.1:35837] FLUSH
05:24:01.219 [nioEventLoopGroup-308-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5b76ac8, /127.0.0.1:54208 :> /127.0.0.1:35837] INACTIVE
05:24:01.219 [nioEventLoopGroup-308-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5b76ac8, /127.0.0.1:54208 :> /127.0.0.1:35837] UNREGISTERED
05:24:01.219 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:01.221 [nioEventLoopGroup-308-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xea06e92d, /127.0.0.1:54212 => /127.0.0.1:35837] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35837
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:01.221 [nioEventLoopGroup-308-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
05:24:01.221 [nioEventLoopGroup-308-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xea06e92d, /127.0.0.1:54212 => /127.0.0.1:35837] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:01.221 [nioEventLoopGroup-308-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xea06e92d, /127.0.0.1:54212 => /127.0.0.1:35837] FLUSH
05:24:01.222 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:01.222 [nioEventLoopGroup-308-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xea06e92d, /127.0.0.1:54212 => /127.0.0.1:35837] FLUSH
05:24:01.222 [nioEventLoopGroup-318-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-318-1
05:24:01.222 [nioEventLoopGroup-308-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xea06e92d, /127.0.0.1:54212 :> /127.0.0.1:35837] INACTIVE
05:24:01.222 [nioEventLoopGroup-308-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xea06e92d, /127.0.0.1:54212 :> /127.0.0.1:35837] UNREGISTERED
05:24:01.222 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:01.226 [nioEventLoopGroup-308-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x863a7227, /127.0.0.1:54214 => /127.0.0.1:35837] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35837
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:01.227 [nioEventLoopGroup-308-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
05:24:01.227 [nioEventLoopGroup-308-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x863a7227, /127.0.0.1:54214 => /127.0.0.1:35837] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:01.227 [nioEventLoopGroup-308-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x863a7227, /127.0.0.1:54214 => /127.0.0.1:35837] FLUSH
05:24:01.227 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:01.228 [nioEventLoopGroup-308-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x863a7227, /127.0.0.1:54214 => /127.0.0.1:35837] FLUSH
05:24:01.228 [nioEventLoopGroup-308-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x863a7227, /127.0.0.1:54214 :> /127.0.0.1:35837] INACTIVE
05:24:01.228 [nioEventLoopGroup-308-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x863a7227, /127.0.0.1:54214 :> /127.0.0.1:35837] UNREGISTERED
05:24:01.228 [nioEventLoopGroup-319-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-319-1
05:24:01.229 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:01.231 [nioEventLoopGroup-308-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6b4c5049, /127.0.0.1:54216 => /127.0.0.1:35837] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35837
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:01.232 [nioEventLoopGroup-308-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
05:24:01.232 [nioEventLoopGroup-308-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6b4c5049, /127.0.0.1:54216 => /127.0.0.1:35837] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:01.232 [nioEventLoopGroup-308-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6b4c5049, /127.0.0.1:54216 => /127.0.0.1:35837] FLUSH
05:24:01.232 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:01.232 [nioEventLoopGroup-308-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6b4c5049, /127.0.0.1:54216 => /127.0.0.1:35837] FLUSH
05:24:01.232 [nioEventLoopGroup-320-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-320-1
05:24:01.232 [nioEventLoopGroup-308-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6b4c5049, /127.0.0.1:54216 :> /127.0.0.1:35837] INACTIVE
05:24:01.232 [nioEventLoopGroup-308-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6b4c5049, /127.0.0.1:54216 :> /127.0.0.1:35837] UNREGISTERED
05:24:01.233 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:01.236 [nioEventLoopGroup-308-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x788d832a, /127.0.0.1:54218 => /127.0.0.1:35837] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35837
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:01.237 [nioEventLoopGroup-308-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:01.237 [nioEventLoopGroup-308-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x788d832a, /127.0.0.1:54218 => /127.0.0.1:35837] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:01.237 [nioEventLoopGroup-308-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x788d832a, /127.0.0.1:54218 => /127.0.0.1:35837] FLUSH
05:24:01.237 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:01.237 [nioEventLoopGroup-308-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x788d832a, /127.0.0.1:54218 => /127.0.0.1:35837] FLUSH
05:24:01.237 [nioEventLoopGroup-308-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x788d832a, /127.0.0.1:54218 :> /127.0.0.1:35837] INACTIVE
05:24:01.237 [nioEventLoopGroup-308-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x788d832a, /127.0.0.1:54218 :> /127.0.0.1:35837] UNREGISTERED
05:24:01.237 [nioEventLoopGroup-321-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-321-1
05:24:01.248 [nioEventLoopGroup-308-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a4906aa, /127.0.0.1:54220 => /127.0.0.1:35837] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status500 HTTP/1.1
Host: localhost:35837
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_102)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
05:24:01.249 [nioEventLoopGroup-308-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35837" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:01.249 [nioEventLoopGroup-308-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35837" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:01.249 [nioEventLoopGroup-308-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35837" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:24:01.249 [nioEventLoopGroup-308-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35837" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:01.249 [nioEventLoopGroup-308-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35837" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:01.250 [nioEventLoopGroup-308-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35837" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:01.250 [nioEventLoopGroup-308-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35837" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:01.250 [nioEventLoopGroup-308-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35837" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:01.250 [nioEventLoopGroup-308-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35837" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:01.250 [nioEventLoopGroup-308-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35837" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:01.250 [nioEventLoopGroup-308-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35837" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status500"
}
05:24:01.251 [nioEventLoopGroup-308-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 500
}
for request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35837" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:24:01.251 [nioEventLoopGroup-308-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a4906aa, /127.0.0.1:54220 => /127.0.0.1:35837] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 500 Internal Server Error
Content-Length: 0
Connection: keep-alive, 0B
05:24:01.251 [nioEventLoopGroup-308-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a4906aa, /127.0.0.1:54220 => /127.0.0.1:35837] FLUSH
05:24:01.257 [nioEventLoopGroup-308-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9a108d7c, /127.0.0.1:54222 => /127.0.0.1:35837] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status500 HTTP/1.1
Host: localhost:35837
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_102)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
05:24:01.258 [nioEventLoopGroup-308-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35837" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:01.258 [nioEventLoopGroup-308-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35837" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:01.258 [nioEventLoopGroup-308-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35837" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:24:01.258 [nioEventLoopGroup-308-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35837" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:01.259 [nioEventLoopGroup-308-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35837" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:01.259 [nioEventLoopGroup-308-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35837" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:01.259 [nioEventLoopGroup-308-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35837" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:01.259 [nioEventLoopGroup-308-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35837" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:01.259 [nioEventLoopGroup-308-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35837" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:01.260 [nioEventLoopGroup-308-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35837" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:01.260 [nioEventLoopGroup-308-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35837" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status500"
}
05:24:01.260 [nioEventLoopGroup-308-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 500
}
for request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35837" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:24:01.260 [nioEventLoopGroup-308-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9a108d7c, /127.0.0.1:54222 => /127.0.0.1:35837] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 500 Internal Server Error
Content-Length: 0
Connection: keep-alive, 0B
05:24:01.260 [nioEventLoopGroup-308-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9a108d7c, /127.0.0.1:54222 => /127.0.0.1:35837] FLUSH
05:24:01.261 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
05:24:01.263 [nioEventLoopGroup-308-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xccea8845, /127.0.0.1:54224 => /127.0.0.1:35837] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:35837
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
05:24:01.263 [nioEventLoopGroup-308-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xccea8845, /127.0.0.1:54224 => /127.0.0.1:35837] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:01.263 [nioEventLoopGroup-308-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xccea8845, /127.0.0.1:54224 => /127.0.0.1:35837] FLUSH
05:24:01.263 [nioEventLoopGroup-308-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xccea8845, /127.0.0.1:54224 => /127.0.0.1:35837] CLOSE()
05:24:01.263 [nioEventLoopGroup-292-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe053a866, /127.0.0.1:52306 :> /127.0.0.1:41155] FLUSH
05:24:01.263 [nioEventLoopGroup-292-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe053a866, /127.0.0.1:52306 :> /127.0.0.1:41155] INACTIVE
05:24:01.264 [nioEventLoopGroup-292-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe053a866, /127.0.0.1:52306 :> /127.0.0.1:41155] UNREGISTERED
05:24:01.264 [nioEventLoopGroup-292-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-16
05:24:01.264 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:01.264 [nioEventLoopGroup-322-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-322-1
05:24:01.267 [nioEventLoopGroup-308-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-1
05:24:01.267 [nioEventLoopGroup-308-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-3
05:24:01.267 [nioEventLoopGroup-308-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-4
05:24:01.267 [nioEventLoopGroup-308-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-5
05:24:01.267 [nioEventLoopGroup-308-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-9
05:24:01.267 [nioEventLoopGroup-308-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-6
05:24:01.267 [nioEventLoopGroup-308-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-10
05:24:01.267 [nioEventLoopGroup-308-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-7
05:24:01.267 [nioEventLoopGroup-308-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-11
05:24:01.267 [nioEventLoopGroup-308-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-12
05:24:01.267 [nioEventLoopGroup-308-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-13
05:24:01.267 [nioEventLoopGroup-308-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9a108d7c, /127.0.0.1:54222 :> /127.0.0.1:35837] INACTIVE
05:24:01.267 [nioEventLoopGroup-308-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a4906aa, /127.0.0.1:54220 :> /127.0.0.1:35837] INACTIVE
05:24:01.267 [nioEventLoopGroup-308-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9a108d7c, /127.0.0.1:54222 :> /127.0.0.1:35837] UNREGISTERED
05:24:01.267 [nioEventLoopGroup-308-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a4906aa, /127.0.0.1:54220 :> /127.0.0.1:35837] UNREGISTERED
05:24:01.269 [nioEventLoopGroup-308-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-2
05:24:01.270 [nioEventLoopGroup-308-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-8
05:24:01.305 [nioEventLoopGroup-276-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-14
05:24:01.305 [nioEventLoopGroup-276-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-15
05:24:01.617 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:01.618 [MockServer thread for port: 40511] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 40511
05:24:01.619 [nioEventLoopGroup-324-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3349fe79, /127.0.0.1:48920 => /127.0.0.1:40511] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40511
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:01.620 [nioEventLoopGroup-324-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:01.620 [nioEventLoopGroup-324-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3349fe79, /127.0.0.1:48920 => /127.0.0.1:40511] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:01.620 [nioEventLoopGroup-324-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3349fe79, /127.0.0.1:48920 => /127.0.0.1:40511] FLUSH
05:24:01.621 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:01.621 [nioEventLoopGroup-324-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3349fe79, /127.0.0.1:48920 => /127.0.0.1:40511] FLUSH
05:24:01.621 [nioEventLoopGroup-324-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3349fe79, /127.0.0.1:48920 :> /127.0.0.1:40511] INACTIVE
05:24:01.621 [nioEventLoopGroup-324-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3349fe79, /127.0.0.1:48920 :> /127.0.0.1:40511] UNREGISTERED
05:24:01.621 [nioEventLoopGroup-325-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-325-1
05:24:01.622 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:01.623 [nioEventLoopGroup-324-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9f2e51af, /127.0.0.1:48922 => /127.0.0.1:40511] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40511
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:01.624 [nioEventLoopGroup-324-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
05:24:01.624 [nioEventLoopGroup-324-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9f2e51af, /127.0.0.1:48922 => /127.0.0.1:40511] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:01.625 [nioEventLoopGroup-324-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9f2e51af, /127.0.0.1:48922 => /127.0.0.1:40511] FLUSH
05:24:01.625 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:01.625 [nioEventLoopGroup-324-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9f2e51af, /127.0.0.1:48922 => /127.0.0.1:40511] FLUSH
05:24:01.625 [nioEventLoopGroup-326-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-326-1
05:24:01.626 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:01.627 [nioEventLoopGroup-324-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9f2e51af, /127.0.0.1:48922 :> /127.0.0.1:40511] INACTIVE
05:24:01.627 [nioEventLoopGroup-324-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9f2e51af, /127.0.0.1:48922 :> /127.0.0.1:40511] UNREGISTERED
05:24:01.633 [nioEventLoopGroup-324-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3e6ca7ba, /127.0.0.1:48924 => /127.0.0.1:40511] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40511
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:01.634 [nioEventLoopGroup-324-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
05:24:01.634 [nioEventLoopGroup-324-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3e6ca7ba, /127.0.0.1:48924 => /127.0.0.1:40511] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:01.634 [nioEventLoopGroup-324-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3e6ca7ba, /127.0.0.1:48924 => /127.0.0.1:40511] FLUSH
05:24:01.635 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:01.635 [nioEventLoopGroup-324-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3e6ca7ba, /127.0.0.1:48924 => /127.0.0.1:40511] FLUSH
05:24:01.635 [nioEventLoopGroup-324-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3e6ca7ba, /127.0.0.1:48924 :> /127.0.0.1:40511] INACTIVE
05:24:01.635 [nioEventLoopGroup-324-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3e6ca7ba, /127.0.0.1:48924 :> /127.0.0.1:40511] UNREGISTERED
05:24:01.635 [nioEventLoopGroup-327-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-327-1
05:24:01.636 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:01.639 [nioEventLoopGroup-324-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa6699ffe, /127.0.0.1:48926 => /127.0.0.1:40511] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40511
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:01.639 [nioEventLoopGroup-324-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:01.640 [nioEventLoopGroup-324-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa6699ffe, /127.0.0.1:48926 => /127.0.0.1:40511] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:01.640 [nioEventLoopGroup-324-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa6699ffe, /127.0.0.1:48926 => /127.0.0.1:40511] FLUSH
05:24:01.640 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:01.640 [nioEventLoopGroup-324-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa6699ffe, /127.0.0.1:48926 => /127.0.0.1:40511] FLUSH
05:24:01.640 [nioEventLoopGroup-328-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-328-1
05:24:01.640 [nioEventLoopGroup-324-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa6699ffe, /127.0.0.1:48926 :> /127.0.0.1:40511] INACTIVE
05:24:01.640 [nioEventLoopGroup-324-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa6699ffe, /127.0.0.1:48926 :> /127.0.0.1:40511] UNREGISTERED
05:24:01.641 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:01.642 [nioEventLoopGroup-324-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdd87e9f9, /127.0.0.1:48928 => /127.0.0.1:40511] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40511
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
05:24:01.643 [nioEventLoopGroup-324-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
05:24:01.643 [nioEventLoopGroup-324-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdd87e9f9, /127.0.0.1:48928 => /127.0.0.1:40511] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:01.643 [nioEventLoopGroup-324-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdd87e9f9, /127.0.0.1:48928 => /127.0.0.1:40511] FLUSH
05:24:01.643 [nioEventLoopGroup-324-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdd87e9f9, /127.0.0.1:48928 => /127.0.0.1:40511] FLUSH
05:24:01.643 [nioEventLoopGroup-324-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdd87e9f9, /127.0.0.1:48928 :> /127.0.0.1:40511] INACTIVE
05:24:01.643 [nioEventLoopGroup-324-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdd87e9f9, /127.0.0.1:48928 :> /127.0.0.1:40511] UNREGISTERED
05:24:01.643 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:01.644 [nioEventLoopGroup-329-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-329-1
05:24:01.644 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:01.647 [nioEventLoopGroup-324-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x55c56782, /127.0.0.1:48930 => /127.0.0.1:40511] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40511
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
05:24:01.648 [nioEventLoopGroup-324-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
05:24:01.648 [nioEventLoopGroup-324-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x55c56782, /127.0.0.1:48930 => /127.0.0.1:40511] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:01.648 [nioEventLoopGroup-324-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x55c56782, /127.0.0.1:48930 => /127.0.0.1:40511] FLUSH
05:24:01.648 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:01.648 [nioEventLoopGroup-330-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-330-1
05:24:01.648 [nioEventLoopGroup-324-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x55c56782, /127.0.0.1:48930 => /127.0.0.1:40511] FLUSH
05:24:01.648 [nioEventLoopGroup-324-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x55c56782, /127.0.0.1:48930 :> /127.0.0.1:40511] INACTIVE
05:24:01.648 [nioEventLoopGroup-324-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x55c56782, /127.0.0.1:48930 :> /127.0.0.1:40511] UNREGISTERED
05:24:01.652 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:01.653 [nioEventLoopGroup-324-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x51c095e9, /127.0.0.1:48932 => /127.0.0.1:40511] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40511
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:01.654 [nioEventLoopGroup-324-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
05:24:01.654 [nioEventLoopGroup-324-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x51c095e9, /127.0.0.1:48932 => /127.0.0.1:40511] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:01.654 [nioEventLoopGroup-324-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x51c095e9, /127.0.0.1:48932 => /127.0.0.1:40511] FLUSH
05:24:01.654 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:01.654 [nioEventLoopGroup-324-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x51c095e9, /127.0.0.1:48932 => /127.0.0.1:40511] FLUSH
05:24:01.654 [nioEventLoopGroup-324-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x51c095e9, /127.0.0.1:48932 :> /127.0.0.1:40511] INACTIVE
05:24:01.654 [nioEventLoopGroup-324-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x51c095e9, /127.0.0.1:48932 :> /127.0.0.1:40511] UNREGISTERED
05:24:01.654 [nioEventLoopGroup-331-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-331-1
05:24:01.655 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:01.656 [nioEventLoopGroup-324-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc9a7d356, /127.0.0.1:48934 => /127.0.0.1:40511] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40511
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:01.657 [nioEventLoopGroup-324-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
05:24:01.657 [nioEventLoopGroup-324-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc9a7d356, /127.0.0.1:48934 => /127.0.0.1:40511] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:01.657 [nioEventLoopGroup-324-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc9a7d356, /127.0.0.1:48934 => /127.0.0.1:40511] FLUSH
05:24:01.657 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:01.657 [nioEventLoopGroup-324-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc9a7d356, /127.0.0.1:48934 => /127.0.0.1:40511] FLUSH
05:24:01.657 [nioEventLoopGroup-324-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc9a7d356, /127.0.0.1:48934 :> /127.0.0.1:40511] INACTIVE
05:24:01.657 [nioEventLoopGroup-324-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc9a7d356, /127.0.0.1:48934 :> /127.0.0.1:40511] UNREGISTERED
05:24:01.657 [nioEventLoopGroup-332-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-332-1
05:24:01.658 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:01.659 [nioEventLoopGroup-324-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd90ed82a, /127.0.0.1:48936 => /127.0.0.1:40511] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40511
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:01.660 [nioEventLoopGroup-324-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
05:24:01.660 [nioEventLoopGroup-324-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd90ed82a, /127.0.0.1:48936 => /127.0.0.1:40511] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:01.660 [nioEventLoopGroup-324-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd90ed82a, /127.0.0.1:48936 => /127.0.0.1:40511] FLUSH
05:24:01.660 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:01.660 [nioEventLoopGroup-324-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd90ed82a, /127.0.0.1:48936 => /127.0.0.1:40511] FLUSH
05:24:01.660 [nioEventLoopGroup-324-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd90ed82a, /127.0.0.1:48936 :> /127.0.0.1:40511] INACTIVE
05:24:01.660 [nioEventLoopGroup-324-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd90ed82a, /127.0.0.1:48936 :> /127.0.0.1:40511] UNREGISTERED
05:24:01.660 [nioEventLoopGroup-333-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-333-1
05:24:01.661 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:01.663 [nioEventLoopGroup-324-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3f96e827, /127.0.0.1:48938 => /127.0.0.1:40511] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40511
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:01.664 [nioEventLoopGroup-324-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
05:24:01.664 [nioEventLoopGroup-324-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3f96e827, /127.0.0.1:48938 => /127.0.0.1:40511] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:01.664 [nioEventLoopGroup-324-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3f96e827, /127.0.0.1:48938 => /127.0.0.1:40511] FLUSH
05:24:01.664 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:01.664 [nioEventLoopGroup-324-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3f96e827, /127.0.0.1:48938 => /127.0.0.1:40511] FLUSH
05:24:01.665 [nioEventLoopGroup-324-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3f96e827, /127.0.0.1:48938 :> /127.0.0.1:40511] INACTIVE
05:24:01.665 [nioEventLoopGroup-324-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3f96e827, /127.0.0.1:48938 :> /127.0.0.1:40511] UNREGISTERED
05:24:01.665 [nioEventLoopGroup-334-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-334-1
05:24:01.665 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:01.667 [nioEventLoopGroup-324-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a92e5a9, /127.0.0.1:48940 => /127.0.0.1:40511] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40511
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:01.668 [nioEventLoopGroup-324-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
05:24:01.668 [nioEventLoopGroup-324-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a92e5a9, /127.0.0.1:48940 => /127.0.0.1:40511] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:01.668 [nioEventLoopGroup-324-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a92e5a9, /127.0.0.1:48940 => /127.0.0.1:40511] FLUSH
05:24:01.668 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:01.668 [nioEventLoopGroup-324-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a92e5a9, /127.0.0.1:48940 => /127.0.0.1:40511] FLUSH
05:24:01.668 [nioEventLoopGroup-324-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a92e5a9, /127.0.0.1:48940 :> /127.0.0.1:40511] INACTIVE
05:24:01.668 [nioEventLoopGroup-324-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a92e5a9, /127.0.0.1:48940 :> /127.0.0.1:40511] UNREGISTERED
05:24:01.668 [nioEventLoopGroup-335-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-335-1
05:24:01.668 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:01.670 [nioEventLoopGroup-324-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x092f213b, /127.0.0.1:48942 => /127.0.0.1:40511] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40511
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:01.671 [nioEventLoopGroup-324-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
05:24:01.671 [nioEventLoopGroup-324-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x092f213b, /127.0.0.1:48942 => /127.0.0.1:40511] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:01.671 [nioEventLoopGroup-324-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x092f213b, /127.0.0.1:48942 => /127.0.0.1:40511] FLUSH
05:24:01.671 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:01.671 [nioEventLoopGroup-324-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x092f213b, /127.0.0.1:48942 => /127.0.0.1:40511] FLUSH
05:24:01.671 [nioEventLoopGroup-324-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x092f213b, /127.0.0.1:48942 :> /127.0.0.1:40511] INACTIVE
05:24:01.671 [nioEventLoopGroup-324-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x092f213b, /127.0.0.1:48942 :> /127.0.0.1:40511] UNREGISTERED
05:24:01.671 [nioEventLoopGroup-336-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-336-1
05:24:01.672 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:01.674 [nioEventLoopGroup-324-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x615d8a47, /127.0.0.1:48944 => /127.0.0.1:40511] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40511
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:01.674 [nioEventLoopGroup-324-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:01.674 [nioEventLoopGroup-324-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x615d8a47, /127.0.0.1:48944 => /127.0.0.1:40511] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:01.674 [nioEventLoopGroup-324-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x615d8a47, /127.0.0.1:48944 => /127.0.0.1:40511] FLUSH
05:24:01.674 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:01.674 [nioEventLoopGroup-324-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x615d8a47, /127.0.0.1:48944 => /127.0.0.1:40511] FLUSH
05:24:01.675 [nioEventLoopGroup-324-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x615d8a47, /127.0.0.1:48944 :> /127.0.0.1:40511] INACTIVE
05:24:01.675 [nioEventLoopGroup-337-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-337-1
05:24:01.675 [nioEventLoopGroup-324-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x615d8a47, /127.0.0.1:48944 :> /127.0.0.1:40511] UNREGISTERED
05:24:01.682 [nioEventLoopGroup-324-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0b7859b5, /127.0.0.1:48946 => /127.0.0.1:40511] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status200 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_102
Host: localhost:40511
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
05:24:01.682 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:40511" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:01.682 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:40511" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:01.683 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:40511" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:24:01.683 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:40511" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:01.683 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:40511" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:01.683 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:40511" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:01.683 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:40511" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:01.683 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:40511" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status200"
}
05:24:01.684 [nioEventLoopGroup-324-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200
}
for request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:40511" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:24:01.684 [nioEventLoopGroup-324-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0b7859b5, /127.0.0.1:48946 => /127.0.0.1:40511] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 200 OK
Content-Length: 0
Connection: keep-alive, 0B
05:24:01.684 [nioEventLoopGroup-324-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0b7859b5, /127.0.0.1:48946 => /127.0.0.1:40511] FLUSH
05:24:01.686 [nioEventLoopGroup-324-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0b7859b5, /127.0.0.1:48946 => /127.0.0.1:40511] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status200 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_102
Host: localhost:40511
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
05:24:01.686 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:40511" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:01.688 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:40511" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:01.688 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:40511" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:24:01.688 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:40511" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:01.688 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:40511" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:01.689 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:40511" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:01.689 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:40511" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:01.689 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:40511" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status200"
}
05:24:01.689 [nioEventLoopGroup-324-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200
}
for request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:40511" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:24:01.690 [nioEventLoopGroup-324-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0b7859b5, /127.0.0.1:48946 => /127.0.0.1:40511] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 200 OK
Content-Length: 0
Connection: keep-alive, 0B
05:24:01.690 [nioEventLoopGroup-324-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0b7859b5, /127.0.0.1:48946 => /127.0.0.1:40511] FLUSH
05:24:01.690 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
05:24:01.692 [nioEventLoopGroup-324-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf0e07db8, /127.0.0.1:48948 => /127.0.0.1:40511] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:40511
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
05:24:01.692 [nioEventLoopGroup-324-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf0e07db8, /127.0.0.1:48948 => /127.0.0.1:40511] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:01.692 [nioEventLoopGroup-324-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf0e07db8, /127.0.0.1:48948 => /127.0.0.1:40511] FLUSH
05:24:01.692 [nioEventLoopGroup-324-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf0e07db8, /127.0.0.1:48948 => /127.0.0.1:40511] CLOSE()
05:24:01.693 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:01.693 [nioEventLoopGroup-338-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-338-1
05:24:01.694 [nioEventLoopGroup-324-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-1
05:24:01.694 [nioEventLoopGroup-324-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-5
05:24:01.694 [nioEventLoopGroup-324-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-2
05:24:01.694 [nioEventLoopGroup-324-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-11
05:24:01.694 [nioEventLoopGroup-324-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-3
05:24:01.694 [nioEventLoopGroup-324-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-6
05:24:01.694 [nioEventLoopGroup-324-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-4
05:24:01.694 [nioEventLoopGroup-324-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-7
05:24:01.694 [nioEventLoopGroup-324-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-10
05:24:01.694 [nioEventLoopGroup-324-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-8
05:24:01.694 [nioEventLoopGroup-324-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-9
05:24:01.694 [nioEventLoopGroup-324-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-12
05:24:01.694 [nioEventLoopGroup-324-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0b7859b5, /127.0.0.1:48946 :> /127.0.0.1:40511] INACTIVE
05:24:01.694 [nioEventLoopGroup-324-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0b7859b5, /127.0.0.1:48946 :> /127.0.0.1:40511] UNREGISTERED
05:24:01.694 [nioEventLoopGroup-324-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-13
05:24:01.765 [nioEventLoopGroup-292-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-15
05:24:01.765 [nioEventLoopGroup-292-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-14
05:24:01.767 [nioEventLoopGroup-308-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xccea8845, /127.0.0.1:54224 :> /127.0.0.1:35837] FLUSH
05:24:01.767 [nioEventLoopGroup-308-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xccea8845, /127.0.0.1:54224 :> /127.0.0.1:35837] INACTIVE
05:24:01.767 [nioEventLoopGroup-308-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xccea8845, /127.0.0.1:54224 :> /127.0.0.1:35837] UNREGISTERED
05:24:01.767 [nioEventLoopGroup-308-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-16
05:24:02.047 [MockServer thread for port: 42351] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 42351
05:24:02.048 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:02.050 [nioEventLoopGroup-340-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbf627ce4, /127.0.0.1:55400 => /127.0.0.1:42351] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42351
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:02.050 [nioEventLoopGroup-340-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:02.051 [nioEventLoopGroup-340-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbf627ce4, /127.0.0.1:55400 => /127.0.0.1:42351] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:02.051 [nioEventLoopGroup-340-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbf627ce4, /127.0.0.1:55400 => /127.0.0.1:42351] FLUSH
05:24:02.051 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:02.052 [nioEventLoopGroup-341-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-341-1
05:24:02.052 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:02.052 [nioEventLoopGroup-340-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbf627ce4, /127.0.0.1:55400 => /127.0.0.1:42351] FLUSH
05:24:02.053 [nioEventLoopGroup-340-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbf627ce4, /127.0.0.1:55400 :> /127.0.0.1:42351] INACTIVE
05:24:02.054 [nioEventLoopGroup-340-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbf627ce4, /127.0.0.1:55400 :> /127.0.0.1:42351] UNREGISTERED
05:24:02.056 [nioEventLoopGroup-340-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x507de805, /127.0.0.1:55402 => /127.0.0.1:42351] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42351
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:02.057 [nioEventLoopGroup-340-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
05:24:02.058 [nioEventLoopGroup-340-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x507de805, /127.0.0.1:55402 => /127.0.0.1:42351] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:02.058 [nioEventLoopGroup-340-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x507de805, /127.0.0.1:55402 => /127.0.0.1:42351] FLUSH
05:24:02.058 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:02.058 [nioEventLoopGroup-342-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-342-1
05:24:02.059 [nioEventLoopGroup-340-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x507de805, /127.0.0.1:55402 => /127.0.0.1:42351] FLUSH
05:24:02.059 [nioEventLoopGroup-340-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x507de805, /127.0.0.1:55402 :> /127.0.0.1:42351] INACTIVE
05:24:02.059 [nioEventLoopGroup-340-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x507de805, /127.0.0.1:55402 :> /127.0.0.1:42351] UNREGISTERED
05:24:02.059 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:02.065 [nioEventLoopGroup-340-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87c4852f, /127.0.0.1:55406 => /127.0.0.1:42351] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42351
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:02.068 [nioEventLoopGroup-340-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
05:24:02.069 [nioEventLoopGroup-340-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87c4852f, /127.0.0.1:55406 => /127.0.0.1:42351] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:02.069 [nioEventLoopGroup-340-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87c4852f, /127.0.0.1:55406 => /127.0.0.1:42351] FLUSH
05:24:02.069 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:02.070 [nioEventLoopGroup-340-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87c4852f, /127.0.0.1:55406 => /127.0.0.1:42351] FLUSH
05:24:02.070 [nioEventLoopGroup-340-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87c4852f, /127.0.0.1:55406 :> /127.0.0.1:42351] INACTIVE
05:24:02.070 [nioEventLoopGroup-340-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87c4852f, /127.0.0.1:55406 :> /127.0.0.1:42351] UNREGISTERED
05:24:02.070 [nioEventLoopGroup-343-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-343-1
05:24:02.072 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:02.075 [nioEventLoopGroup-340-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0a7035de, /127.0.0.1:55410 => /127.0.0.1:42351] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42351
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:02.076 [nioEventLoopGroup-340-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:02.076 [nioEventLoopGroup-340-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0a7035de, /127.0.0.1:55410 => /127.0.0.1:42351] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:02.077 [nioEventLoopGroup-340-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0a7035de, /127.0.0.1:55410 => /127.0.0.1:42351] FLUSH
05:24:02.077 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:02.077 [nioEventLoopGroup-344-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-344-1
05:24:02.078 [nioEventLoopGroup-340-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0a7035de, /127.0.0.1:55410 => /127.0.0.1:42351] FLUSH
05:24:02.078 [nioEventLoopGroup-340-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0a7035de, /127.0.0.1:55410 :> /127.0.0.1:42351] INACTIVE
05:24:02.078 [nioEventLoopGroup-340-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0a7035de, /127.0.0.1:55410 :> /127.0.0.1:42351] UNREGISTERED
05:24:02.079 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:02.088 [nioEventLoopGroup-340-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5f673d0d, /127.0.0.1:55414 => /127.0.0.1:42351] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42351
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
05:24:02.089 [nioEventLoopGroup-340-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
05:24:02.090 [nioEventLoopGroup-340-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5f673d0d, /127.0.0.1:55414 => /127.0.0.1:42351] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:02.090 [nioEventLoopGroup-340-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5f673d0d, /127.0.0.1:55414 => /127.0.0.1:42351] FLUSH
05:24:02.090 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:02.090 [nioEventLoopGroup-345-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-345-1
05:24:02.090 [nioEventLoopGroup-340-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5f673d0d, /127.0.0.1:55414 => /127.0.0.1:42351] FLUSH
05:24:02.091 [nioEventLoopGroup-340-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5f673d0d, /127.0.0.1:55414 :> /127.0.0.1:42351] INACTIVE
05:24:02.091 [nioEventLoopGroup-340-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5f673d0d, /127.0.0.1:55414 :> /127.0.0.1:42351] UNREGISTERED
05:24:02.124 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:02.140 [nioEventLoopGroup-340-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98fc5dfe, /127.0.0.1:55416 => /127.0.0.1:42351] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42351
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
05:24:02.142 [nioEventLoopGroup-340-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
05:24:02.142 [nioEventLoopGroup-340-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98fc5dfe, /127.0.0.1:55416 => /127.0.0.1:42351] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:02.142 [nioEventLoopGroup-340-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98fc5dfe, /127.0.0.1:55416 => /127.0.0.1:42351] FLUSH
05:24:02.143 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:02.143 [nioEventLoopGroup-340-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98fc5dfe, /127.0.0.1:55416 => /127.0.0.1:42351] FLUSH
05:24:02.143 [nioEventLoopGroup-346-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-346-1
05:24:02.158 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:02.159 [nioEventLoopGroup-340-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98fc5dfe, /127.0.0.1:55416 :> /127.0.0.1:42351] INACTIVE
05:24:02.159 [nioEventLoopGroup-340-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98fc5dfe, /127.0.0.1:55416 :> /127.0.0.1:42351] UNREGISTERED
05:24:02.161 [nioEventLoopGroup-340-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8bcb1eaf, /127.0.0.1:55418 => /127.0.0.1:42351] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42351
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:02.162 [nioEventLoopGroup-340-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
05:24:02.162 [nioEventLoopGroup-340-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8bcb1eaf, /127.0.0.1:55418 => /127.0.0.1:42351] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:02.162 [nioEventLoopGroup-340-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8bcb1eaf, /127.0.0.1:55418 => /127.0.0.1:42351] FLUSH
05:24:02.163 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:02.163 [nioEventLoopGroup-347-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-347-1
05:24:02.163 [nioEventLoopGroup-340-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8bcb1eaf, /127.0.0.1:55418 => /127.0.0.1:42351] FLUSH
05:24:02.163 [nioEventLoopGroup-340-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8bcb1eaf, /127.0.0.1:55418 :> /127.0.0.1:42351] INACTIVE
05:24:02.163 [nioEventLoopGroup-340-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8bcb1eaf, /127.0.0.1:55418 :> /127.0.0.1:42351] UNREGISTERED
05:24:02.168 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:02.177 [nioEventLoopGroup-340-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x78e3eb42, /127.0.0.1:55420 => /127.0.0.1:42351] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42351
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:02.178 [nioEventLoopGroup-340-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
05:24:02.178 [nioEventLoopGroup-340-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x78e3eb42, /127.0.0.1:55420 => /127.0.0.1:42351] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:02.178 [nioEventLoopGroup-340-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x78e3eb42, /127.0.0.1:55420 => /127.0.0.1:42351] FLUSH
05:24:02.179 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:02.179 [nioEventLoopGroup-340-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x78e3eb42, /127.0.0.1:55420 => /127.0.0.1:42351] FLUSH
05:24:02.179 [nioEventLoopGroup-340-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x78e3eb42, /127.0.0.1:55420 :> /127.0.0.1:42351] INACTIVE
05:24:02.179 [nioEventLoopGroup-340-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x78e3eb42, /127.0.0.1:55420 :> /127.0.0.1:42351] UNREGISTERED
05:24:02.179 [nioEventLoopGroup-348-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-348-1
05:24:02.180 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:02.191 [nioEventLoopGroup-340-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaae43f98, /127.0.0.1:55422 => /127.0.0.1:42351] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42351
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:02.191 [nioEventLoopGroup-340-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
05:24:02.192 [nioEventLoopGroup-340-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaae43f98, /127.0.0.1:55422 => /127.0.0.1:42351] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:02.192 [nioEventLoopGroup-340-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaae43f98, /127.0.0.1:55422 => /127.0.0.1:42351] FLUSH
05:24:02.192 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:02.192 [nioEventLoopGroup-349-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-349-1
05:24:02.193 [nioEventLoopGroup-340-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaae43f98, /127.0.0.1:55422 => /127.0.0.1:42351] FLUSH
05:24:02.193 [nioEventLoopGroup-340-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaae43f98, /127.0.0.1:55422 :> /127.0.0.1:42351] INACTIVE
05:24:02.193 [nioEventLoopGroup-340-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaae43f98, /127.0.0.1:55422 :> /127.0.0.1:42351] UNREGISTERED
05:24:02.194 [nioEventLoopGroup-324-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf0e07db8, /127.0.0.1:48948 :> /127.0.0.1:40511] FLUSH
05:24:02.194 [nioEventLoopGroup-324-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf0e07db8, /127.0.0.1:48948 :> /127.0.0.1:40511] INACTIVE
05:24:02.194 [nioEventLoopGroup-324-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf0e07db8, /127.0.0.1:48948 :> /127.0.0.1:40511] UNREGISTERED
05:24:02.194 [nioEventLoopGroup-324-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-15
05:24:02.201 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:02.219 [nioEventLoopGroup-340-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d7c3ef1, /127.0.0.1:55424 => /127.0.0.1:42351] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42351
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:02.220 [nioEventLoopGroup-340-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
05:24:02.220 [nioEventLoopGroup-340-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d7c3ef1, /127.0.0.1:55424 => /127.0.0.1:42351] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:02.220 [nioEventLoopGroup-340-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d7c3ef1, /127.0.0.1:55424 => /127.0.0.1:42351] FLUSH
05:24:02.220 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:02.220 [nioEventLoopGroup-340-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d7c3ef1, /127.0.0.1:55424 => /127.0.0.1:42351] FLUSH
05:24:02.220 [nioEventLoopGroup-350-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-350-1
05:24:02.221 [nioEventLoopGroup-340-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d7c3ef1, /127.0.0.1:55424 :> /127.0.0.1:42351] INACTIVE
05:24:02.221 [nioEventLoopGroup-340-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d7c3ef1, /127.0.0.1:55424 :> /127.0.0.1:42351] UNREGISTERED
05:24:02.221 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:02.224 [nioEventLoopGroup-340-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe081cd5c, /127.0.0.1:55426 => /127.0.0.1:42351] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42351
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:02.224 [nioEventLoopGroup-340-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
05:24:02.224 [nioEventLoopGroup-340-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe081cd5c, /127.0.0.1:55426 => /127.0.0.1:42351] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:02.225 [nioEventLoopGroup-340-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe081cd5c, /127.0.0.1:55426 => /127.0.0.1:42351] FLUSH
05:24:02.225 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:02.225 [nioEventLoopGroup-351-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-351-1
05:24:02.225 [nioEventLoopGroup-340-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe081cd5c, /127.0.0.1:55426 => /127.0.0.1:42351] FLUSH
05:24:02.225 [nioEventLoopGroup-340-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe081cd5c, /127.0.0.1:55426 :> /127.0.0.1:42351] INACTIVE
05:24:02.225 [nioEventLoopGroup-340-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe081cd5c, /127.0.0.1:55426 :> /127.0.0.1:42351] UNREGISTERED
05:24:02.226 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:02.228 [nioEventLoopGroup-340-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb4806522, /127.0.0.1:55428 => /127.0.0.1:42351] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42351
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:02.228 [nioEventLoopGroup-340-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
05:24:02.229 [nioEventLoopGroup-340-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb4806522, /127.0.0.1:55428 => /127.0.0.1:42351] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:02.229 [nioEventLoopGroup-340-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb4806522, /127.0.0.1:55428 => /127.0.0.1:42351] FLUSH
05:24:02.229 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:02.229 [nioEventLoopGroup-340-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb4806522, /127.0.0.1:55428 => /127.0.0.1:42351] FLUSH
05:24:02.229 [nioEventLoopGroup-352-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-352-1
05:24:02.229 [nioEventLoopGroup-340-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb4806522, /127.0.0.1:55428 :> /127.0.0.1:42351] INACTIVE
05:24:02.229 [nioEventLoopGroup-340-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb4806522, /127.0.0.1:55428 :> /127.0.0.1:42351] UNREGISTERED
05:24:02.230 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:02.232 [nioEventLoopGroup-340-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf2a12a9, /127.0.0.1:55430 => /127.0.0.1:42351] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42351
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:02.233 [nioEventLoopGroup-340-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:02.234 [nioEventLoopGroup-340-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf2a12a9, /127.0.0.1:55430 => /127.0.0.1:42351] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:02.234 [nioEventLoopGroup-340-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf2a12a9, /127.0.0.1:55430 => /127.0.0.1:42351] FLUSH
05:24:02.234 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:02.234 [nioEventLoopGroup-340-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf2a12a9, /127.0.0.1:55430 => /127.0.0.1:42351] FLUSH
05:24:02.234 [nioEventLoopGroup-340-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf2a12a9, /127.0.0.1:55430 :> /127.0.0.1:42351] INACTIVE
05:24:02.234 [nioEventLoopGroup-340-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf2a12a9, /127.0.0.1:55430 :> /127.0.0.1:42351] UNREGISTERED
05:24:02.234 [nioEventLoopGroup-353-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-353-1
05:24:02.247 [nioEventLoopGroup-340-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x82014b5b, /127.0.0.1:55432 => /127.0.0.1:42351] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status300 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_102
Host: localhost:42351
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
05:24:02.247 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:42351" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:02.248 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:42351" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:02.248 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:42351" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:24:02.248 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:42351" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:02.248 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:42351" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:02.249 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:42351" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:02.251 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:42351" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:02.251 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:42351" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:02.251 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:42351" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status300"
}
05:24:02.252 [nioEventLoopGroup-340-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 300
}
for request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:42351" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:24:02.252 [nioEventLoopGroup-340-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x82014b5b, /127.0.0.1:55432 => /127.0.0.1:42351] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 300 Multiple Choices
Content-Length: 0
Connection: keep-alive, 0B
05:24:02.252 [nioEventLoopGroup-340-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x82014b5b, /127.0.0.1:55432 => /127.0.0.1:42351] FLUSH
05:24:02.253 [nioEventLoopGroup-340-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x82014b5b, /127.0.0.1:55432 => /127.0.0.1:42351] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status300 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_102
Host: localhost:42351
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
05:24:02.254 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:42351" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:02.254 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:42351" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:02.254 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:42351" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:24:02.254 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:42351" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:02.255 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:42351" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:02.255 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:42351" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:02.255 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:42351" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:02.255 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:42351" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:02.255 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:42351" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status300"
}
05:24:02.256 [nioEventLoopGroup-340-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 300
}
for request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:42351" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:24:02.256 [nioEventLoopGroup-340-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x82014b5b, /127.0.0.1:55432 => /127.0.0.1:42351] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 300 Multiple Choices
Content-Length: 0
Connection: keep-alive, 0B
05:24:02.256 [nioEventLoopGroup-340-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x82014b5b, /127.0.0.1:55432 => /127.0.0.1:42351] FLUSH
05:24:02.257 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
05:24:02.259 [nioEventLoopGroup-340-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d43488b, /127.0.0.1:55434 => /127.0.0.1:42351] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:42351
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
05:24:02.259 [nioEventLoopGroup-340-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d43488b, /127.0.0.1:55434 => /127.0.0.1:42351] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:02.260 [nioEventLoopGroup-340-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d43488b, /127.0.0.1:55434 => /127.0.0.1:42351] FLUSH
05:24:02.260 [nioEventLoopGroup-340-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d43488b, /127.0.0.1:55434 => /127.0.0.1:42351] CLOSE()
05:24:02.260 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:02.261 [nioEventLoopGroup-354-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-354-1
05:24:02.297 [nioEventLoopGroup-308-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-14
05:24:02.298 [nioEventLoopGroup-308-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-15
05:24:02.301 [nioEventLoopGroup-340-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-7
05:24:02.301 [nioEventLoopGroup-340-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-11
05:24:02.301 [nioEventLoopGroup-340-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-2
05:24:02.301 [nioEventLoopGroup-340-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-13
05:24:02.301 [nioEventLoopGroup-340-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-9
05:24:02.301 [nioEventLoopGroup-340-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-3
05:24:02.301 [nioEventLoopGroup-340-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-1
05:24:02.301 [nioEventLoopGroup-340-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-4
05:24:02.301 [nioEventLoopGroup-340-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-8
05:24:02.301 [nioEventLoopGroup-340-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-5
05:24:02.301 [nioEventLoopGroup-340-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-6
05:24:02.302 [nioEventLoopGroup-340-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-10
05:24:02.302 [nioEventLoopGroup-340-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x82014b5b, /127.0.0.1:55432 :> /127.0.0.1:42351] INACTIVE
05:24:02.302 [nioEventLoopGroup-340-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-12
05:24:02.302 [nioEventLoopGroup-340-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x82014b5b, /127.0.0.1:55432 :> /127.0.0.1:42351] UNREGISTERED
05:24:02.614 [MockServer thread for port: 41051] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 41051
05:24:02.615 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:02.617 [nioEventLoopGroup-356-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd53d65e, /127.0.0.1:45426 => /127.0.0.1:41051] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41051
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:02.618 [nioEventLoopGroup-356-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:02.618 [nioEventLoopGroup-356-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd53d65e, /127.0.0.1:45426 => /127.0.0.1:41051] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:02.618 [nioEventLoopGroup-356-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd53d65e, /127.0.0.1:45426 => /127.0.0.1:41051] FLUSH
05:24:02.618 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:02.618 [nioEventLoopGroup-356-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd53d65e, /127.0.0.1:45426 => /127.0.0.1:41051] FLUSH
05:24:02.618 [nioEventLoopGroup-356-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd53d65e, /127.0.0.1:45426 :> /127.0.0.1:41051] INACTIVE
05:24:02.618 [nioEventLoopGroup-356-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd53d65e, /127.0.0.1:45426 :> /127.0.0.1:41051] UNREGISTERED
05:24:02.619 [nioEventLoopGroup-357-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-357-1
05:24:02.620 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:02.623 [nioEventLoopGroup-356-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x950a8486, /127.0.0.1:45428 => /127.0.0.1:41051] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41051
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:02.623 [nioEventLoopGroup-356-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
05:24:02.624 [nioEventLoopGroup-356-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x950a8486, /127.0.0.1:45428 => /127.0.0.1:41051] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:02.624 [nioEventLoopGroup-356-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x950a8486, /127.0.0.1:45428 => /127.0.0.1:41051] FLUSH
05:24:02.624 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:02.624 [nioEventLoopGroup-356-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x950a8486, /127.0.0.1:45428 => /127.0.0.1:41051] FLUSH
05:24:02.624 [nioEventLoopGroup-356-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x950a8486, /127.0.0.1:45428 :> /127.0.0.1:41051] INACTIVE
05:24:02.624 [nioEventLoopGroup-356-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x950a8486, /127.0.0.1:45428 :> /127.0.0.1:41051] UNREGISTERED
05:24:02.624 [nioEventLoopGroup-358-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-358-1
05:24:02.625 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:02.628 [nioEventLoopGroup-356-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3edeb1de, /127.0.0.1:45430 => /127.0.0.1:41051] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41051
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:02.629 [nioEventLoopGroup-356-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
05:24:02.629 [nioEventLoopGroup-356-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3edeb1de, /127.0.0.1:45430 => /127.0.0.1:41051] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:02.629 [nioEventLoopGroup-356-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3edeb1de, /127.0.0.1:45430 => /127.0.0.1:41051] FLUSH
05:24:02.630 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:02.630 [nioEventLoopGroup-356-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3edeb1de, /127.0.0.1:45430 => /127.0.0.1:41051] FLUSH
05:24:02.630 [nioEventLoopGroup-356-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3edeb1de, /127.0.0.1:45430 :> /127.0.0.1:41051] INACTIVE
05:24:02.630 [nioEventLoopGroup-356-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3edeb1de, /127.0.0.1:45430 :> /127.0.0.1:41051] UNREGISTERED
05:24:02.630 [nioEventLoopGroup-359-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-359-1
05:24:02.631 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:02.634 [nioEventLoopGroup-356-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x137f1d61, /127.0.0.1:45432 => /127.0.0.1:41051] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41051
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:02.635 [nioEventLoopGroup-356-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:02.635 [nioEventLoopGroup-356-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x137f1d61, /127.0.0.1:45432 => /127.0.0.1:41051] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:02.636 [nioEventLoopGroup-356-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x137f1d61, /127.0.0.1:45432 => /127.0.0.1:41051] FLUSH
05:24:02.636 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:02.636 [nioEventLoopGroup-356-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x137f1d61, /127.0.0.1:45432 => /127.0.0.1:41051] FLUSH
05:24:02.636 [nioEventLoopGroup-356-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x137f1d61, /127.0.0.1:45432 :> /127.0.0.1:41051] INACTIVE
05:24:02.636 [nioEventLoopGroup-356-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x137f1d61, /127.0.0.1:45432 :> /127.0.0.1:41051] UNREGISTERED
05:24:02.641 [nioEventLoopGroup-360-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-360-1
05:24:02.642 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:02.644 [nioEventLoopGroup-356-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa8b24c3, /127.0.0.1:45434 => /127.0.0.1:41051] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41051
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
05:24:02.645 [nioEventLoopGroup-356-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
05:24:02.645 [nioEventLoopGroup-356-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa8b24c3, /127.0.0.1:45434 => /127.0.0.1:41051] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:02.645 [nioEventLoopGroup-356-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa8b24c3, /127.0.0.1:45434 => /127.0.0.1:41051] FLUSH
05:24:02.646 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:02.646 [nioEventLoopGroup-356-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa8b24c3, /127.0.0.1:45434 => /127.0.0.1:41051] FLUSH
05:24:02.646 [nioEventLoopGroup-356-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa8b24c3, /127.0.0.1:45434 :> /127.0.0.1:41051] INACTIVE
05:24:02.646 [nioEventLoopGroup-356-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa8b24c3, /127.0.0.1:45434 :> /127.0.0.1:41051] UNREGISTERED
05:24:02.646 [nioEventLoopGroup-361-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-361-1
05:24:02.647 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:02.649 [nioEventLoopGroup-356-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8941f3e9, /127.0.0.1:45436 => /127.0.0.1:41051] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41051
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
05:24:02.650 [nioEventLoopGroup-356-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
05:24:02.650 [nioEventLoopGroup-356-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8941f3e9, /127.0.0.1:45436 => /127.0.0.1:41051] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:02.650 [nioEventLoopGroup-356-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8941f3e9, /127.0.0.1:45436 => /127.0.0.1:41051] FLUSH
05:24:02.651 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:02.651 [nioEventLoopGroup-362-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-362-1
05:24:02.651 [nioEventLoopGroup-356-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8941f3e9, /127.0.0.1:45436 => /127.0.0.1:41051] FLUSH
05:24:02.655 [nioEventLoopGroup-356-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8941f3e9, /127.0.0.1:45436 :> /127.0.0.1:41051] INACTIVE
05:24:02.656 [nioEventLoopGroup-356-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8941f3e9, /127.0.0.1:45436 :> /127.0.0.1:41051] UNREGISTERED
05:24:02.656 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:02.658 [nioEventLoopGroup-356-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2f63a402, /127.0.0.1:45438 => /127.0.0.1:41051] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41051
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:02.659 [nioEventLoopGroup-356-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
05:24:02.660 [nioEventLoopGroup-356-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2f63a402, /127.0.0.1:45438 => /127.0.0.1:41051] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:02.660 [nioEventLoopGroup-356-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2f63a402, /127.0.0.1:45438 => /127.0.0.1:41051] FLUSH
05:24:02.660 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:02.660 [nioEventLoopGroup-363-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-363-1
05:24:02.661 [nioEventLoopGroup-356-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2f63a402, /127.0.0.1:45438 => /127.0.0.1:41051] FLUSH
05:24:02.661 [nioEventLoopGroup-356-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2f63a402, /127.0.0.1:45438 :> /127.0.0.1:41051] INACTIVE
05:24:02.661 [nioEventLoopGroup-356-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2f63a402, /127.0.0.1:45438 :> /127.0.0.1:41051] UNREGISTERED
05:24:02.662 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:02.664 [nioEventLoopGroup-356-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9bca1753, /127.0.0.1:45440 => /127.0.0.1:41051] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41051
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:02.664 [nioEventLoopGroup-356-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
05:24:02.665 [nioEventLoopGroup-356-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9bca1753, /127.0.0.1:45440 => /127.0.0.1:41051] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:02.665 [nioEventLoopGroup-356-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9bca1753, /127.0.0.1:45440 => /127.0.0.1:41051] FLUSH
05:24:02.665 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:02.665 [nioEventLoopGroup-356-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9bca1753, /127.0.0.1:45440 => /127.0.0.1:41051] FLUSH
05:24:02.665 [nioEventLoopGroup-364-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-364-1
05:24:02.665 [nioEventLoopGroup-356-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9bca1753, /127.0.0.1:45440 :> /127.0.0.1:41051] INACTIVE
05:24:02.665 [nioEventLoopGroup-356-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9bca1753, /127.0.0.1:45440 :> /127.0.0.1:41051] UNREGISTERED
05:24:02.666 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:02.669 [nioEventLoopGroup-356-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d9cf9f4, /127.0.0.1:45442 => /127.0.0.1:41051] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41051
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:02.670 [nioEventLoopGroup-356-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
05:24:02.670 [nioEventLoopGroup-356-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d9cf9f4, /127.0.0.1:45442 => /127.0.0.1:41051] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:02.670 [nioEventLoopGroup-356-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d9cf9f4, /127.0.0.1:45442 => /127.0.0.1:41051] FLUSH
05:24:02.670 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:02.671 [nioEventLoopGroup-356-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d9cf9f4, /127.0.0.1:45442 => /127.0.0.1:41051] FLUSH
05:24:02.671 [nioEventLoopGroup-356-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d9cf9f4, /127.0.0.1:45442 :> /127.0.0.1:41051] INACTIVE
05:24:02.671 [nioEventLoopGroup-356-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d9cf9f4, /127.0.0.1:45442 :> /127.0.0.1:41051] UNREGISTERED
05:24:02.671 [nioEventLoopGroup-365-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-365-1
05:24:02.672 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:02.674 [nioEventLoopGroup-356-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x60797d0a, /127.0.0.1:45444 => /127.0.0.1:41051] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41051
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:02.675 [nioEventLoopGroup-356-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
05:24:02.675 [nioEventLoopGroup-356-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x60797d0a, /127.0.0.1:45444 => /127.0.0.1:41051] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:02.675 [nioEventLoopGroup-356-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x60797d0a, /127.0.0.1:45444 => /127.0.0.1:41051] FLUSH
05:24:02.679 [nioEventLoopGroup-356-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x60797d0a, /127.0.0.1:45444 => /127.0.0.1:41051] FLUSH
05:24:02.679 [nioEventLoopGroup-356-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x60797d0a, /127.0.0.1:45444 :> /127.0.0.1:41051] INACTIVE
05:24:02.679 [nioEventLoopGroup-356-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x60797d0a, /127.0.0.1:45444 :> /127.0.0.1:41051] UNREGISTERED
05:24:02.679 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:02.679 [nioEventLoopGroup-366-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-366-1
05:24:02.680 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:02.683 [nioEventLoopGroup-356-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1eba7149, /127.0.0.1:45446 => /127.0.0.1:41051] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41051
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:02.684 [nioEventLoopGroup-356-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
05:24:02.685 [nioEventLoopGroup-356-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1eba7149, /127.0.0.1:45446 => /127.0.0.1:41051] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:02.685 [nioEventLoopGroup-356-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1eba7149, /127.0.0.1:45446 => /127.0.0.1:41051] FLUSH
05:24:02.685 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:02.685 [nioEventLoopGroup-367-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-367-1
05:24:02.686 [nioEventLoopGroup-356-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1eba7149, /127.0.0.1:45446 => /127.0.0.1:41051] FLUSH
05:24:02.686 [nioEventLoopGroup-356-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1eba7149, /127.0.0.1:45446 :> /127.0.0.1:41051] INACTIVE
05:24:02.686 [nioEventLoopGroup-356-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1eba7149, /127.0.0.1:45446 :> /127.0.0.1:41051] UNREGISTERED
05:24:02.694 [nioEventLoopGroup-324-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-14
05:24:02.696 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:02.699 [nioEventLoopGroup-356-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98a026bf, /127.0.0.1:45448 => /127.0.0.1:41051] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41051
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:02.700 [nioEventLoopGroup-356-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
05:24:02.701 [nioEventLoopGroup-356-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98a026bf, /127.0.0.1:45448 => /127.0.0.1:41051] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:02.701 [nioEventLoopGroup-356-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98a026bf, /127.0.0.1:45448 => /127.0.0.1:41051] FLUSH
05:24:02.701 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:02.701 [nioEventLoopGroup-368-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-368-1
05:24:02.701 [nioEventLoopGroup-356-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98a026bf, /127.0.0.1:45448 => /127.0.0.1:41051] FLUSH
05:24:02.701 [nioEventLoopGroup-356-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98a026bf, /127.0.0.1:45448 :> /127.0.0.1:41051] INACTIVE
05:24:02.701 [nioEventLoopGroup-356-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98a026bf, /127.0.0.1:45448 :> /127.0.0.1:41051] UNREGISTERED
05:24:02.711 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:02.716 [nioEventLoopGroup-356-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x89d53b3b, /127.0.0.1:45450 => /127.0.0.1:41051] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41051
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:02.716 [nioEventLoopGroup-356-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:02.717 [nioEventLoopGroup-356-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x89d53b3b, /127.0.0.1:45450 => /127.0.0.1:41051] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:02.717 [nioEventLoopGroup-356-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x89d53b3b, /127.0.0.1:45450 => /127.0.0.1:41051] FLUSH
05:24:02.717 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:02.717 [nioEventLoopGroup-356-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x89d53b3b, /127.0.0.1:45450 => /127.0.0.1:41051] FLUSH
05:24:02.718 [nioEventLoopGroup-356-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x89d53b3b, /127.0.0.1:45450 :> /127.0.0.1:41051] INACTIVE
05:24:02.718 [nioEventLoopGroup-356-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x89d53b3b, /127.0.0.1:45450 :> /127.0.0.1:41051] UNREGISTERED
05:24:02.718 [nioEventLoopGroup-369-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-369-1
05:24:02.722 [nioEventLoopGroup-356-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb04315c4, /127.0.0.1:45452 => /127.0.0.1:41051] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status400 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_102
Host: localhost:41051
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
05:24:02.723 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41051" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:02.723 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41051" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:02.724 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41051" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:24:02.724 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41051" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:02.724 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41051" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:02.724 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41051" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:02.725 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41051" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:02.725 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41051" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:02.725 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41051" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:02.725 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41051" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status400"
}
05:24:02.725 [nioEventLoopGroup-356-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 400
}
for request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41051" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:24:02.725 [nioEventLoopGroup-356-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb04315c4, /127.0.0.1:45452 => /127.0.0.1:41051] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 400 Bad Request
Content-Length: 0
Connection: keep-alive, 0B
05:24:02.726 [nioEventLoopGroup-356-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb04315c4, /127.0.0.1:45452 => /127.0.0.1:41051] FLUSH
05:24:02.735 [nioEventLoopGroup-356-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb04315c4, /127.0.0.1:45452 => /127.0.0.1:41051] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status400 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_102
Host: localhost:41051
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
05:24:02.735 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41051" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:02.736 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41051" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:02.737 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41051" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:24:02.739 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41051" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:02.741 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41051" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:02.742 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41051" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:02.744 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41051" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:02.746 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41051" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:02.748 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41051" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:02.749 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41051" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status400"
}
05:24:02.751 [nioEventLoopGroup-356-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 400
}
for request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41051" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:24:02.752 [nioEventLoopGroup-356-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb04315c4, /127.0.0.1:45452 => /127.0.0.1:41051] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 400 Bad Request
Content-Length: 0
Connection: keep-alive, 0B
05:24:02.752 [nioEventLoopGroup-356-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb04315c4, /127.0.0.1:45452 => /127.0.0.1:41051] FLUSH
05:24:02.753 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
05:24:02.759 [nioEventLoopGroup-356-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb8378505, /127.0.0.1:45454 => /127.0.0.1:41051] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:41051
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
05:24:02.760 [nioEventLoopGroup-356-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb8378505, /127.0.0.1:45454 => /127.0.0.1:41051] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:02.760 [nioEventLoopGroup-356-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb8378505, /127.0.0.1:45454 => /127.0.0.1:41051] FLUSH
05:24:02.760 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:02.760 [nioEventLoopGroup-370-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-370-1
05:24:02.760 [nioEventLoopGroup-356-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb8378505, /127.0.0.1:45454 => /127.0.0.1:41051] CLOSE()
05:24:02.771 [nioEventLoopGroup-356-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-2
05:24:02.771 [nioEventLoopGroup-356-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-1
05:24:02.771 [nioEventLoopGroup-356-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-7
05:24:02.771 [nioEventLoopGroup-356-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-8
05:24:02.771 [nioEventLoopGroup-356-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-3
05:24:02.771 [nioEventLoopGroup-356-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-9
05:24:02.771 [nioEventLoopGroup-356-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-4
05:24:02.771 [nioEventLoopGroup-356-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-13
05:24:02.771 [nioEventLoopGroup-356-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-5
05:24:02.771 [nioEventLoopGroup-356-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-6
05:24:02.771 [nioEventLoopGroup-356-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-10
05:24:02.771 [nioEventLoopGroup-356-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-11
05:24:02.771 [nioEventLoopGroup-356-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-12
05:24:02.771 [nioEventLoopGroup-356-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb04315c4, /127.0.0.1:45452 :> /127.0.0.1:41051] INACTIVE
05:24:02.772 [nioEventLoopGroup-356-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb04315c4, /127.0.0.1:45452 :> /127.0.0.1:41051] UNREGISTERED
05:24:02.802 [nioEventLoopGroup-340-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d43488b, /127.0.0.1:55434 :> /127.0.0.1:42351] FLUSH
05:24:02.802 [nioEventLoopGroup-340-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d43488b, /127.0.0.1:55434 :> /127.0.0.1:42351] INACTIVE
05:24:02.802 [nioEventLoopGroup-340-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d43488b, /127.0.0.1:55434 :> /127.0.0.1:42351] UNREGISTERED
05:24:02.802 [nioEventLoopGroup-340-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-15
05:24:03.123 [MockServer thread for port: 41351] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 41351
05:24:03.124 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:03.125 [nioEventLoopGroup-372-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x77cf332f, /127.0.0.1:47226 => /127.0.0.1:41351] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41351
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:03.126 [nioEventLoopGroup-372-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:03.126 [nioEventLoopGroup-372-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x77cf332f, /127.0.0.1:47226 => /127.0.0.1:41351] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:03.126 [nioEventLoopGroup-372-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x77cf332f, /127.0.0.1:47226 => /127.0.0.1:41351] FLUSH
05:24:03.126 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:03.126 [nioEventLoopGroup-373-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-373-1
05:24:03.126 [nioEventLoopGroup-372-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x77cf332f, /127.0.0.1:47226 => /127.0.0.1:41351] FLUSH
05:24:03.127 [nioEventLoopGroup-372-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x77cf332f, /127.0.0.1:47226 :> /127.0.0.1:41351] INACTIVE
05:24:03.127 [nioEventLoopGroup-372-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x77cf332f, /127.0.0.1:47226 :> /127.0.0.1:41351] UNREGISTERED
05:24:03.130 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:03.132 [nioEventLoopGroup-372-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x66193ccb, /127.0.0.1:47228 => /127.0.0.1:41351] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41351
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:03.133 [nioEventLoopGroup-372-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
05:24:03.133 [nioEventLoopGroup-372-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x66193ccb, /127.0.0.1:47228 => /127.0.0.1:41351] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:03.133 [nioEventLoopGroup-372-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x66193ccb, /127.0.0.1:47228 => /127.0.0.1:41351] FLUSH
05:24:03.134 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:03.134 [nioEventLoopGroup-372-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x66193ccb, /127.0.0.1:47228 => /127.0.0.1:41351] FLUSH
05:24:03.134 [nioEventLoopGroup-374-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-374-1
05:24:03.134 [nioEventLoopGroup-372-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x66193ccb, /127.0.0.1:47228 :> /127.0.0.1:41351] INACTIVE
05:24:03.134 [nioEventLoopGroup-372-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x66193ccb, /127.0.0.1:47228 :> /127.0.0.1:41351] UNREGISTERED
05:24:03.135 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:03.137 [nioEventLoopGroup-372-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x29321ec5, /127.0.0.1:47230 => /127.0.0.1:41351] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41351
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:03.137 [nioEventLoopGroup-372-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
05:24:03.137 [nioEventLoopGroup-372-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x29321ec5, /127.0.0.1:47230 => /127.0.0.1:41351] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:03.138 [nioEventLoopGroup-372-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x29321ec5, /127.0.0.1:47230 => /127.0.0.1:41351] FLUSH
05:24:03.138 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:03.138 [nioEventLoopGroup-372-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x29321ec5, /127.0.0.1:47230 => /127.0.0.1:41351] FLUSH
05:24:03.138 [nioEventLoopGroup-375-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-375-1
05:24:03.138 [nioEventLoopGroup-372-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x29321ec5, /127.0.0.1:47230 :> /127.0.0.1:41351] INACTIVE
05:24:03.139 [nioEventLoopGroup-372-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x29321ec5, /127.0.0.1:47230 :> /127.0.0.1:41351] UNREGISTERED
05:24:03.139 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:03.141 [nioEventLoopGroup-372-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x134844a4, /127.0.0.1:47232 => /127.0.0.1:41351] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41351
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:03.141 [nioEventLoopGroup-372-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:03.141 [nioEventLoopGroup-372-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x134844a4, /127.0.0.1:47232 => /127.0.0.1:41351] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:03.142 [nioEventLoopGroup-372-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x134844a4, /127.0.0.1:47232 => /127.0.0.1:41351] FLUSH
05:24:03.142 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:03.142 [nioEventLoopGroup-372-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x134844a4, /127.0.0.1:47232 => /127.0.0.1:41351] FLUSH
05:24:03.142 [nioEventLoopGroup-376-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-376-1
05:24:03.142 [nioEventLoopGroup-372-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x134844a4, /127.0.0.1:47232 :> /127.0.0.1:41351] INACTIVE
05:24:03.143 [nioEventLoopGroup-372-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x134844a4, /127.0.0.1:47232 :> /127.0.0.1:41351] UNREGISTERED
05:24:03.143 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:03.145 [nioEventLoopGroup-372-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd648ae0a, /127.0.0.1:47234 => /127.0.0.1:41351] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41351
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
05:24:03.146 [nioEventLoopGroup-372-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
05:24:03.146 [nioEventLoopGroup-372-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd648ae0a, /127.0.0.1:47234 => /127.0.0.1:41351] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:03.146 [nioEventLoopGroup-372-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd648ae0a, /127.0.0.1:47234 => /127.0.0.1:41351] FLUSH
05:24:03.146 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:03.146 [nioEventLoopGroup-372-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd648ae0a, /127.0.0.1:47234 => /127.0.0.1:41351] FLUSH
05:24:03.146 [nioEventLoopGroup-372-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd648ae0a, /127.0.0.1:47234 :> /127.0.0.1:41351] INACTIVE
05:24:03.146 [nioEventLoopGroup-372-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd648ae0a, /127.0.0.1:47234 :> /127.0.0.1:41351] UNREGISTERED
05:24:03.146 [nioEventLoopGroup-377-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-377-1
05:24:03.147 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:03.150 [nioEventLoopGroup-372-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdf53c520, /127.0.0.1:47236 => /127.0.0.1:41351] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41351
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
05:24:03.151 [nioEventLoopGroup-372-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
05:24:03.151 [nioEventLoopGroup-372-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdf53c520, /127.0.0.1:47236 => /127.0.0.1:41351] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:03.151 [nioEventLoopGroup-372-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdf53c520, /127.0.0.1:47236 => /127.0.0.1:41351] FLUSH
05:24:03.152 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:03.152 [nioEventLoopGroup-372-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdf53c520, /127.0.0.1:47236 => /127.0.0.1:41351] FLUSH
05:24:03.152 [nioEventLoopGroup-372-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdf53c520, /127.0.0.1:47236 :> /127.0.0.1:41351] INACTIVE
05:24:03.152 [nioEventLoopGroup-372-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdf53c520, /127.0.0.1:47236 :> /127.0.0.1:41351] UNREGISTERED
05:24:03.152 [nioEventLoopGroup-378-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-378-1
05:24:03.153 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:03.157 [nioEventLoopGroup-372-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9ed54bb2, /127.0.0.1:47238 => /127.0.0.1:41351] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41351
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:03.157 [nioEventLoopGroup-372-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
05:24:03.158 [nioEventLoopGroup-372-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9ed54bb2, /127.0.0.1:47238 => /127.0.0.1:41351] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:03.158 [nioEventLoopGroup-372-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9ed54bb2, /127.0.0.1:47238 => /127.0.0.1:41351] FLUSH
05:24:03.158 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:03.158 [nioEventLoopGroup-372-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9ed54bb2, /127.0.0.1:47238 => /127.0.0.1:41351] FLUSH
05:24:03.159 [nioEventLoopGroup-372-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9ed54bb2, /127.0.0.1:47238 :> /127.0.0.1:41351] INACTIVE
05:24:03.159 [nioEventLoopGroup-379-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-379-1
05:24:03.159 [nioEventLoopGroup-372-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9ed54bb2, /127.0.0.1:47238 :> /127.0.0.1:41351] UNREGISTERED
05:24:03.160 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:03.162 [nioEventLoopGroup-372-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa943fddf, /127.0.0.1:47240 => /127.0.0.1:41351] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41351
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:03.162 [nioEventLoopGroup-372-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
05:24:03.163 [nioEventLoopGroup-372-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa943fddf, /127.0.0.1:47240 => /127.0.0.1:41351] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:03.163 [nioEventLoopGroup-372-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa943fddf, /127.0.0.1:47240 => /127.0.0.1:41351] FLUSH
05:24:03.163 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:03.163 [nioEventLoopGroup-372-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa943fddf, /127.0.0.1:47240 => /127.0.0.1:41351] FLUSH
05:24:03.163 [nioEventLoopGroup-372-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa943fddf, /127.0.0.1:47240 :> /127.0.0.1:41351] INACTIVE
05:24:03.163 [nioEventLoopGroup-372-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa943fddf, /127.0.0.1:47240 :> /127.0.0.1:41351] UNREGISTERED
05:24:03.163 [nioEventLoopGroup-380-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-380-1
05:24:03.170 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:03.173 [nioEventLoopGroup-372-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd7a1da49, /127.0.0.1:47242 => /127.0.0.1:41351] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41351
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:03.174 [nioEventLoopGroup-372-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
05:24:03.174 [nioEventLoopGroup-372-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd7a1da49, /127.0.0.1:47242 => /127.0.0.1:41351] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:03.174 [nioEventLoopGroup-372-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd7a1da49, /127.0.0.1:47242 => /127.0.0.1:41351] FLUSH
05:24:03.174 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:03.174 [nioEventLoopGroup-372-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd7a1da49, /127.0.0.1:47242 => /127.0.0.1:41351] FLUSH
05:24:03.174 [nioEventLoopGroup-372-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd7a1da49, /127.0.0.1:47242 :> /127.0.0.1:41351] INACTIVE
05:24:03.174 [nioEventLoopGroup-372-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd7a1da49, /127.0.0.1:47242 :> /127.0.0.1:41351] UNREGISTERED
05:24:03.175 [nioEventLoopGroup-381-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-381-1
05:24:03.175 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:03.177 [nioEventLoopGroup-372-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0d57d31f, /127.0.0.1:47244 => /127.0.0.1:41351] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41351
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:03.178 [nioEventLoopGroup-372-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
05:24:03.178 [nioEventLoopGroup-372-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0d57d31f, /127.0.0.1:47244 => /127.0.0.1:41351] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:03.178 [nioEventLoopGroup-372-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0d57d31f, /127.0.0.1:47244 => /127.0.0.1:41351] FLUSH
05:24:03.178 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:03.178 [nioEventLoopGroup-382-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-382-1
05:24:03.178 [nioEventLoopGroup-372-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0d57d31f, /127.0.0.1:47244 => /127.0.0.1:41351] FLUSH
05:24:03.178 [nioEventLoopGroup-372-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0d57d31f, /127.0.0.1:47244 :> /127.0.0.1:41351] INACTIVE
05:24:03.178 [nioEventLoopGroup-372-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0d57d31f, /127.0.0.1:47244 :> /127.0.0.1:41351] UNREGISTERED
05:24:03.179 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:03.181 [nioEventLoopGroup-372-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7687d087, /127.0.0.1:47246 => /127.0.0.1:41351] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41351
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:03.181 [nioEventLoopGroup-372-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
05:24:03.181 [nioEventLoopGroup-372-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7687d087, /127.0.0.1:47246 => /127.0.0.1:41351] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:03.182 [nioEventLoopGroup-372-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7687d087, /127.0.0.1:47246 => /127.0.0.1:41351] FLUSH
05:24:03.182 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:03.182 [nioEventLoopGroup-372-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7687d087, /127.0.0.1:47246 => /127.0.0.1:41351] FLUSH
05:24:03.182 [nioEventLoopGroup-383-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-383-1
05:24:03.182 [nioEventLoopGroup-372-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7687d087, /127.0.0.1:47246 :> /127.0.0.1:41351] INACTIVE
05:24:03.182 [nioEventLoopGroup-372-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7687d087, /127.0.0.1:47246 :> /127.0.0.1:41351] UNREGISTERED
05:24:03.183 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:03.185 [nioEventLoopGroup-372-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb4f3b42a, /127.0.0.1:47248 => /127.0.0.1:41351] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41351
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:03.185 [nioEventLoopGroup-372-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
05:24:03.185 [nioEventLoopGroup-372-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb4f3b42a, /127.0.0.1:47248 => /127.0.0.1:41351] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:03.185 [nioEventLoopGroup-372-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb4f3b42a, /127.0.0.1:47248 => /127.0.0.1:41351] FLUSH
05:24:03.186 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:03.186 [nioEventLoopGroup-372-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb4f3b42a, /127.0.0.1:47248 => /127.0.0.1:41351] FLUSH
05:24:03.186 [nioEventLoopGroup-384-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-384-1
05:24:03.186 [nioEventLoopGroup-372-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb4f3b42a, /127.0.0.1:47248 :> /127.0.0.1:41351] INACTIVE
05:24:03.186 [nioEventLoopGroup-372-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb4f3b42a, /127.0.0.1:47248 :> /127.0.0.1:41351] UNREGISTERED
05:24:03.187 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:03.189 [nioEventLoopGroup-372-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2bed46e9, /127.0.0.1:47250 => /127.0.0.1:41351] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41351
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:03.190 [nioEventLoopGroup-372-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:03.190 [nioEventLoopGroup-372-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2bed46e9, /127.0.0.1:47250 => /127.0.0.1:41351] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:03.190 [nioEventLoopGroup-372-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2bed46e9, /127.0.0.1:47250 => /127.0.0.1:41351] FLUSH
05:24:03.191 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:03.191 [nioEventLoopGroup-385-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-385-1
05:24:03.191 [nioEventLoopGroup-372-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2bed46e9, /127.0.0.1:47250 => /127.0.0.1:41351] FLUSH
05:24:03.191 [nioEventLoopGroup-372-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2bed46e9, /127.0.0.1:47250 :> /127.0.0.1:41351] INACTIVE
05:24:03.191 [nioEventLoopGroup-372-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2bed46e9, /127.0.0.1:47250 :> /127.0.0.1:41351] UNREGISTERED
05:24:03.194 [nioEventLoopGroup-372-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd4f3f50f, /127.0.0.1:47252 => /127.0.0.1:41351] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status500 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_102
Host: localhost:41351
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
05:24:03.194 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41351" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:03.195 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41351" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:03.196 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41351" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:24:03.197 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41351" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:03.197 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41351" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:03.198 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41351" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:03.198 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41351" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:03.198 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41351" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:03.198 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41351" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:03.199 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41351" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:03.199 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41351" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status500"
}
05:24:03.201 [nioEventLoopGroup-372-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 500
}
for request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41351" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:24:03.201 [nioEventLoopGroup-372-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd4f3f50f, /127.0.0.1:47252 => /127.0.0.1:41351] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 500 Internal Server Error
Content-Length: 0
Connection: keep-alive, 0B
05:24:03.201 [nioEventLoopGroup-372-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd4f3f50f, /127.0.0.1:47252 => /127.0.0.1:41351] FLUSH
05:24:03.203 [nioEventLoopGroup-372-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd4f3f50f, /127.0.0.1:47252 => /127.0.0.1:41351] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status500 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_102
Host: localhost:41351
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
05:24:03.206 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41351" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:03.207 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41351" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:03.209 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41351" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:24:03.210 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41351" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:03.210 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41351" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:03.210 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41351" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:03.211 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41351" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:03.211 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41351" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:03.211 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41351" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:03.211 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41351" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:03.211 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41351" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status500"
}
05:24:03.212 [nioEventLoopGroup-372-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 500
}
for request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41351" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:24:03.212 [nioEventLoopGroup-372-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd4f3f50f, /127.0.0.1:47252 => /127.0.0.1:41351] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 500 Internal Server Error
Content-Length: 0
Connection: keep-alive, 0B
05:24:03.213 [nioEventLoopGroup-372-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd4f3f50f, /127.0.0.1:47252 => /127.0.0.1:41351] FLUSH
05:24:03.213 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
05:24:03.215 [nioEventLoopGroup-372-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d8cca7c, /127.0.0.1:47254 => /127.0.0.1:41351] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:41351
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
05:24:03.216 [nioEventLoopGroup-372-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d8cca7c, /127.0.0.1:47254 => /127.0.0.1:41351] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:03.216 [nioEventLoopGroup-372-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d8cca7c, /127.0.0.1:47254 => /127.0.0.1:41351] FLUSH
05:24:03.216 [nioEventLoopGroup-372-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d8cca7c, /127.0.0.1:47254 => /127.0.0.1:41351] CLOSE()
05:24:03.216 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:03.217 [nioEventLoopGroup-386-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-386-1
05:24:03.217 [nioEventLoopGroup-372-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-5
05:24:03.218 [nioEventLoopGroup-372-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-7
05:24:03.218 [nioEventLoopGroup-372-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-12
05:24:03.218 [nioEventLoopGroup-372-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-10
05:24:03.218 [nioEventLoopGroup-372-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-3
05:24:03.218 [nioEventLoopGroup-372-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-8
05:24:03.218 [nioEventLoopGroup-372-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd4f3f50f, /127.0.0.1:47252 :> /127.0.0.1:41351] INACTIVE
05:24:03.218 [nioEventLoopGroup-372-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-9
05:24:03.218 [nioEventLoopGroup-372-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-11
05:24:03.218 [nioEventLoopGroup-372-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-13
05:24:03.218 [nioEventLoopGroup-372-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd4f3f50f, /127.0.0.1:47252 :> /127.0.0.1:41351] UNREGISTERED
05:24:03.223 [nioEventLoopGroup-372-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-1
05:24:03.223 [nioEventLoopGroup-372-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-2
05:24:03.223 [nioEventLoopGroup-372-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-4
05:24:03.223 [nioEventLoopGroup-372-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-6
05:24:03.271 [nioEventLoopGroup-356-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb8378505, /127.0.0.1:45454 :> /127.0.0.1:41051] FLUSH
05:24:03.272 [nioEventLoopGroup-356-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb8378505, /127.0.0.1:45454 :> /127.0.0.1:41051] INACTIVE
05:24:03.272 [nioEventLoopGroup-356-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb8378505, /127.0.0.1:45454 :> /127.0.0.1:41051] UNREGISTERED
05:24:03.272 [nioEventLoopGroup-356-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-15
05:24:03.304 [nioEventLoopGroup-340-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-14
05:24:03.571 [MockServer thread for port: 39007] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 39007
05:24:03.571 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:03.573 [nioEventLoopGroup-388-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x20ff809c, /127.0.0.1:56488 => /127.0.0.1:39007] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39007
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:03.573 [nioEventLoopGroup-388-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:03.573 [nioEventLoopGroup-388-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x20ff809c, /127.0.0.1:56488 => /127.0.0.1:39007] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:03.573 [nioEventLoopGroup-388-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x20ff809c, /127.0.0.1:56488 => /127.0.0.1:39007] FLUSH
05:24:03.573 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:03.573 [nioEventLoopGroup-388-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x20ff809c, /127.0.0.1:56488 => /127.0.0.1:39007] FLUSH
05:24:03.574 [nioEventLoopGroup-389-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-389-1
05:24:03.574 [nioEventLoopGroup-388-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x20ff809c, /127.0.0.1:56488 :> /127.0.0.1:39007] INACTIVE
05:24:03.574 [nioEventLoopGroup-388-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x20ff809c, /127.0.0.1:56488 :> /127.0.0.1:39007] UNREGISTERED
05:24:03.574 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:03.575 [nioEventLoopGroup-388-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa9c8eb6e, /127.0.0.1:56490 => /127.0.0.1:39007] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39007
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:03.576 [nioEventLoopGroup-388-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
05:24:03.576 [nioEventLoopGroup-388-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa9c8eb6e, /127.0.0.1:56490 => /127.0.0.1:39007] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:03.576 [nioEventLoopGroup-388-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa9c8eb6e, /127.0.0.1:56490 => /127.0.0.1:39007] FLUSH
05:24:03.576 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:03.576 [nioEventLoopGroup-388-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa9c8eb6e, /127.0.0.1:56490 => /127.0.0.1:39007] FLUSH
05:24:03.576 [nioEventLoopGroup-390-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-390-1
05:24:03.576 [nioEventLoopGroup-388-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa9c8eb6e, /127.0.0.1:56490 :> /127.0.0.1:39007] INACTIVE
05:24:03.576 [nioEventLoopGroup-388-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa9c8eb6e, /127.0.0.1:56490 :> /127.0.0.1:39007] UNREGISTERED
05:24:03.577 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:03.578 [nioEventLoopGroup-388-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x860310c3, /127.0.0.1:56492 => /127.0.0.1:39007] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39007
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:03.578 [nioEventLoopGroup-388-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
05:24:03.578 [nioEventLoopGroup-388-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x860310c3, /127.0.0.1:56492 => /127.0.0.1:39007] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:03.578 [nioEventLoopGroup-388-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x860310c3, /127.0.0.1:56492 => /127.0.0.1:39007] FLUSH
05:24:03.579 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:03.579 [nioEventLoopGroup-388-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x860310c3, /127.0.0.1:56492 => /127.0.0.1:39007] FLUSH
05:24:03.579 [nioEventLoopGroup-388-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x860310c3, /127.0.0.1:56492 :> /127.0.0.1:39007] INACTIVE
05:24:03.579 [nioEventLoopGroup-391-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-391-1
05:24:03.579 [nioEventLoopGroup-388-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x860310c3, /127.0.0.1:56492 :> /127.0.0.1:39007] UNREGISTERED
05:24:03.579 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:03.580 [nioEventLoopGroup-388-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c29401b, /127.0.0.1:56494 => /127.0.0.1:39007] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39007
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:03.581 [nioEventLoopGroup-388-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:03.581 [nioEventLoopGroup-388-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c29401b, /127.0.0.1:56494 => /127.0.0.1:39007] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:03.581 [nioEventLoopGroup-388-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c29401b, /127.0.0.1:56494 => /127.0.0.1:39007] FLUSH
05:24:03.581 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:03.581 [nioEventLoopGroup-388-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c29401b, /127.0.0.1:56494 => /127.0.0.1:39007] FLUSH
05:24:03.581 [nioEventLoopGroup-388-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c29401b, /127.0.0.1:56494 :> /127.0.0.1:39007] INACTIVE
05:24:03.581 [nioEventLoopGroup-392-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-392-1
05:24:03.581 [nioEventLoopGroup-388-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c29401b, /127.0.0.1:56494 :> /127.0.0.1:39007] UNREGISTERED
05:24:03.582 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:03.583 [nioEventLoopGroup-388-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd7d2cf3c, /127.0.0.1:56496 => /127.0.0.1:39007] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39007
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
05:24:03.583 [nioEventLoopGroup-388-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
05:24:03.584 [nioEventLoopGroup-388-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd7d2cf3c, /127.0.0.1:56496 => /127.0.0.1:39007] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:03.584 [nioEventLoopGroup-388-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd7d2cf3c, /127.0.0.1:56496 => /127.0.0.1:39007] FLUSH
05:24:03.584 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:03.584 [nioEventLoopGroup-388-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd7d2cf3c, /127.0.0.1:56496 => /127.0.0.1:39007] FLUSH
05:24:03.584 [nioEventLoopGroup-388-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd7d2cf3c, /127.0.0.1:56496 :> /127.0.0.1:39007] INACTIVE
05:24:03.584 [nioEventLoopGroup-388-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd7d2cf3c, /127.0.0.1:56496 :> /127.0.0.1:39007] UNREGISTERED
05:24:03.584 [nioEventLoopGroup-393-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-393-1
05:24:03.584 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:03.586 [nioEventLoopGroup-388-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb2bbc969, /127.0.0.1:56498 => /127.0.0.1:39007] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39007
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
05:24:03.587 [nioEventLoopGroup-388-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
05:24:03.587 [nioEventLoopGroup-388-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb2bbc969, /127.0.0.1:56498 => /127.0.0.1:39007] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:03.587 [nioEventLoopGroup-388-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb2bbc969, /127.0.0.1:56498 => /127.0.0.1:39007] FLUSH
05:24:03.587 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:03.587 [nioEventLoopGroup-388-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb2bbc969, /127.0.0.1:56498 => /127.0.0.1:39007] FLUSH
05:24:03.587 [nioEventLoopGroup-394-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-394-1
05:24:03.587 [nioEventLoopGroup-388-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb2bbc969, /127.0.0.1:56498 :> /127.0.0.1:39007] INACTIVE
05:24:03.587 [nioEventLoopGroup-388-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb2bbc969, /127.0.0.1:56498 :> /127.0.0.1:39007] UNREGISTERED
05:24:03.589 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:03.590 [nioEventLoopGroup-388-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd392850, /127.0.0.1:56500 => /127.0.0.1:39007] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39007
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:03.590 [nioEventLoopGroup-388-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
05:24:03.590 [nioEventLoopGroup-388-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd392850, /127.0.0.1:56500 => /127.0.0.1:39007] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:03.591 [nioEventLoopGroup-388-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd392850, /127.0.0.1:56500 => /127.0.0.1:39007] FLUSH
05:24:03.591 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:03.591 [nioEventLoopGroup-388-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd392850, /127.0.0.1:56500 => /127.0.0.1:39007] FLUSH
05:24:03.591 [nioEventLoopGroup-388-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd392850, /127.0.0.1:56500 :> /127.0.0.1:39007] INACTIVE
05:24:03.591 [nioEventLoopGroup-388-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd392850, /127.0.0.1:56500 :> /127.0.0.1:39007] UNREGISTERED
05:24:03.591 [nioEventLoopGroup-395-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-395-1
05:24:03.591 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:03.593 [nioEventLoopGroup-388-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x620946e5, /127.0.0.1:56502 => /127.0.0.1:39007] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39007
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:03.593 [nioEventLoopGroup-388-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
05:24:03.593 [nioEventLoopGroup-388-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x620946e5, /127.0.0.1:56502 => /127.0.0.1:39007] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:03.593 [nioEventLoopGroup-388-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x620946e5, /127.0.0.1:56502 => /127.0.0.1:39007] FLUSH
05:24:03.593 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:03.593 [nioEventLoopGroup-388-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x620946e5, /127.0.0.1:56502 => /127.0.0.1:39007] FLUSH
05:24:03.593 [nioEventLoopGroup-388-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x620946e5, /127.0.0.1:56502 :> /127.0.0.1:39007] INACTIVE
05:24:03.593 [nioEventLoopGroup-396-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-396-1
05:24:03.593 [nioEventLoopGroup-388-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x620946e5, /127.0.0.1:56502 :> /127.0.0.1:39007] UNREGISTERED
05:24:03.594 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:03.595 [nioEventLoopGroup-388-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d1babbe, /127.0.0.1:56504 => /127.0.0.1:39007] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39007
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:03.595 [nioEventLoopGroup-388-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
05:24:03.596 [nioEventLoopGroup-388-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d1babbe, /127.0.0.1:56504 => /127.0.0.1:39007] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:03.596 [nioEventLoopGroup-388-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d1babbe, /127.0.0.1:56504 => /127.0.0.1:39007] FLUSH
05:24:03.596 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:03.596 [nioEventLoopGroup-388-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d1babbe, /127.0.0.1:56504 => /127.0.0.1:39007] FLUSH
05:24:03.596 [nioEventLoopGroup-397-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-397-1
05:24:03.596 [nioEventLoopGroup-388-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d1babbe, /127.0.0.1:56504 :> /127.0.0.1:39007] INACTIVE
05:24:03.596 [nioEventLoopGroup-388-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d1babbe, /127.0.0.1:56504 :> /127.0.0.1:39007] UNREGISTERED
05:24:03.596 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:03.598 [nioEventLoopGroup-388-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb61697b3, /127.0.0.1:56506 => /127.0.0.1:39007] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39007
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:03.598 [nioEventLoopGroup-388-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
05:24:03.598 [nioEventLoopGroup-388-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb61697b3, /127.0.0.1:56506 => /127.0.0.1:39007] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:03.598 [nioEventLoopGroup-388-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb61697b3, /127.0.0.1:56506 => /127.0.0.1:39007] FLUSH
05:24:03.598 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:03.598 [nioEventLoopGroup-388-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb61697b3, /127.0.0.1:56506 => /127.0.0.1:39007] FLUSH
05:24:03.598 [nioEventLoopGroup-388-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb61697b3, /127.0.0.1:56506 :> /127.0.0.1:39007] INACTIVE
05:24:03.598 [nioEventLoopGroup-388-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb61697b3, /127.0.0.1:56506 :> /127.0.0.1:39007] UNREGISTERED
05:24:03.598 [nioEventLoopGroup-398-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-398-1
05:24:03.599 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:03.600 [nioEventLoopGroup-388-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0b3cc6cc, /127.0.0.1:56508 => /127.0.0.1:39007] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39007
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:03.601 [nioEventLoopGroup-388-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
05:24:03.601 [nioEventLoopGroup-388-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0b3cc6cc, /127.0.0.1:56508 => /127.0.0.1:39007] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:03.601 [nioEventLoopGroup-388-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0b3cc6cc, /127.0.0.1:56508 => /127.0.0.1:39007] FLUSH
05:24:03.601 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:03.601 [nioEventLoopGroup-388-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0b3cc6cc, /127.0.0.1:56508 => /127.0.0.1:39007] FLUSH
05:24:03.601 [nioEventLoopGroup-388-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0b3cc6cc, /127.0.0.1:56508 :> /127.0.0.1:39007] INACTIVE
05:24:03.601 [nioEventLoopGroup-399-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-399-1
05:24:03.601 [nioEventLoopGroup-388-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0b3cc6cc, /127.0.0.1:56508 :> /127.0.0.1:39007] UNREGISTERED
05:24:03.603 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:03.605 [nioEventLoopGroup-388-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x569ed4c2, /127.0.0.1:56510 => /127.0.0.1:39007] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39007
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:03.605 [nioEventLoopGroup-388-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
05:24:03.605 [nioEventLoopGroup-388-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x569ed4c2, /127.0.0.1:56510 => /127.0.0.1:39007] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:03.605 [nioEventLoopGroup-388-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x569ed4c2, /127.0.0.1:56510 => /127.0.0.1:39007] FLUSH
05:24:03.605 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:03.606 [nioEventLoopGroup-388-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x569ed4c2, /127.0.0.1:56510 => /127.0.0.1:39007] FLUSH
05:24:03.606 [nioEventLoopGroup-388-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x569ed4c2, /127.0.0.1:56510 :> /127.0.0.1:39007] INACTIVE
05:24:03.606 [nioEventLoopGroup-388-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x569ed4c2, /127.0.0.1:56510 :> /127.0.0.1:39007] UNREGISTERED
05:24:03.606 [nioEventLoopGroup-400-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-400-1
05:24:03.606 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:03.608 [nioEventLoopGroup-388-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2c968b9f, /127.0.0.1:56512 => /127.0.0.1:39007] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39007
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:03.608 [nioEventLoopGroup-388-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:03.608 [nioEventLoopGroup-388-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2c968b9f, /127.0.0.1:56512 => /127.0.0.1:39007] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:03.608 [nioEventLoopGroup-388-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2c968b9f, /127.0.0.1:56512 => /127.0.0.1:39007] FLUSH
05:24:03.608 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:03.608 [nioEventLoopGroup-388-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2c968b9f, /127.0.0.1:56512 => /127.0.0.1:39007] FLUSH
05:24:03.608 [nioEventLoopGroup-388-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2c968b9f, /127.0.0.1:56512 :> /127.0.0.1:39007] INACTIVE
05:24:03.608 [nioEventLoopGroup-388-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2c968b9f, /127.0.0.1:56512 :> /127.0.0.1:39007] UNREGISTERED
05:24:03.608 [nioEventLoopGroup-401-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-401-1
05:24:03.615 [nioEventLoopGroup-388-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0b985a40, /127.0.0.1:56514 => /127.0.0.1:39007] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET / HTTP/1.1
Host: localhost:39007
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_102)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
05:24:03.615 [nioEventLoopGroup-388-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39007" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/"
}
05:24:03.616 [nioEventLoopGroup-388-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39007" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:24:03.616 [nioEventLoopGroup-388-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0b985a40, /127.0.0.1:56514 => /127.0.0.1:39007] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 119, cap: 119/119))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 119
Connection: keep-alive, 119B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e |o miss -->Nothin|
|00000060| 67 20 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e |g special</body>|
|00000070| 3c 2f 68 74 6d 6c 3e |</html> |
+--------+-------------------------------------------------+----------------+
05:24:03.616 [nioEventLoopGroup-388-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0b985a40, /127.0.0.1:56514 => /127.0.0.1:39007] FLUSH
05:24:03.622 [nioEventLoopGroup-388-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5fca19cc, /127.0.0.1:56516 => /127.0.0.1:39007] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET / HTTP/1.1
Host: localhost:39007
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_102)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
05:24:03.622 [nioEventLoopGroup-388-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39007" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/"
}
05:24:03.623 [nioEventLoopGroup-388-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39007" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:24:03.623 [nioEventLoopGroup-388-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5fca19cc, /127.0.0.1:56516 => /127.0.0.1:39007] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 119, cap: 119/119))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 119
Connection: keep-alive, 119B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e |o miss -->Nothin|
|00000060| 67 20 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e |g special</body>|
|00000070| 3c 2f 68 74 6d 6c 3e |</html> |
+--------+-------------------------------------------------+----------------+
05:24:03.623 [nioEventLoopGroup-388-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5fca19cc, /127.0.0.1:56516 => /127.0.0.1:39007] FLUSH
05:24:03.624 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
05:24:03.625 [nioEventLoopGroup-388-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x747c7450, /127.0.0.1:56518 => /127.0.0.1:39007] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:39007
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
05:24:03.625 [nioEventLoopGroup-388-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x747c7450, /127.0.0.1:56518 => /127.0.0.1:39007] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:03.625 [nioEventLoopGroup-388-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x747c7450, /127.0.0.1:56518 => /127.0.0.1:39007] FLUSH
05:24:03.626 [nioEventLoopGroup-388-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x747c7450, /127.0.0.1:56518 => /127.0.0.1:39007] CLOSE()
05:24:03.626 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:03.626 [nioEventLoopGroup-402-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-402-1
05:24:03.626 [nioEventLoopGroup-388-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-2
05:24:03.626 [nioEventLoopGroup-388-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-4
05:24:03.626 [nioEventLoopGroup-388-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-10
05:24:03.626 [nioEventLoopGroup-388-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-6
05:24:03.626 [nioEventLoopGroup-388-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-13
05:24:03.626 [nioEventLoopGroup-388-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-1
05:24:03.626 [nioEventLoopGroup-388-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5fca19cc, /127.0.0.1:56516 :> /127.0.0.1:39007] INACTIVE
05:24:03.626 [nioEventLoopGroup-388-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-12
05:24:03.626 [nioEventLoopGroup-388-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-8
05:24:03.626 [nioEventLoopGroup-388-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-3
05:24:03.626 [nioEventLoopGroup-388-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-5
05:24:03.626 [nioEventLoopGroup-388-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-7
05:24:03.626 [nioEventLoopGroup-388-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-9
05:24:03.626 [nioEventLoopGroup-388-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-11
05:24:03.627 [nioEventLoopGroup-388-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5fca19cc, /127.0.0.1:56516 :> /127.0.0.1:39007] UNREGISTERED
05:24:03.628 [nioEventLoopGroup-388-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0b985a40, /127.0.0.1:56514 :> /127.0.0.1:39007] INACTIVE
05:24:03.629 [nioEventLoopGroup-388-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0b985a40, /127.0.0.1:56514 :> /127.0.0.1:39007] UNREGISTERED
05:24:03.718 [nioEventLoopGroup-372-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d8cca7c, /127.0.0.1:47254 :> /127.0.0.1:41351] FLUSH
05:24:03.718 [nioEventLoopGroup-372-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d8cca7c, /127.0.0.1:47254 :> /127.0.0.1:41351] INACTIVE
05:24:03.718 [nioEventLoopGroup-372-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d8cca7c, /127.0.0.1:47254 :> /127.0.0.1:41351] UNREGISTERED
05:24:03.718 [nioEventLoopGroup-372-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-15
05:24:03.773 [nioEventLoopGroup-356-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-14
05:24:03.979 [MockServer thread for port: 44117] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 44117
05:24:03.979 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:03.981 [nioEventLoopGroup-404-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x16c2cf40, /127.0.0.1:36854 => /127.0.0.1:44117] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44117
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:03.981 [nioEventLoopGroup-404-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:03.981 [nioEventLoopGroup-404-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x16c2cf40, /127.0.0.1:36854 => /127.0.0.1:44117] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:03.982 [nioEventLoopGroup-404-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x16c2cf40, /127.0.0.1:36854 => /127.0.0.1:44117] FLUSH
05:24:03.982 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:03.982 [nioEventLoopGroup-404-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x16c2cf40, /127.0.0.1:36854 => /127.0.0.1:44117] FLUSH
05:24:03.982 [nioEventLoopGroup-404-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x16c2cf40, /127.0.0.1:36854 :> /127.0.0.1:44117] INACTIVE
05:24:03.982 [nioEventLoopGroup-404-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x16c2cf40, /127.0.0.1:36854 :> /127.0.0.1:44117] UNREGISTERED
05:24:03.982 [nioEventLoopGroup-405-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-405-1
05:24:03.982 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:03.984 [nioEventLoopGroup-404-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48f8fad6, /127.0.0.1:36856 => /127.0.0.1:44117] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44117
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:03.985 [nioEventLoopGroup-404-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
05:24:03.985 [nioEventLoopGroup-404-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48f8fad6, /127.0.0.1:36856 => /127.0.0.1:44117] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:03.985 [nioEventLoopGroup-404-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48f8fad6, /127.0.0.1:36856 => /127.0.0.1:44117] FLUSH
05:24:03.985 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:03.985 [nioEventLoopGroup-404-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48f8fad6, /127.0.0.1:36856 => /127.0.0.1:44117] FLUSH
05:24:03.985 [nioEventLoopGroup-404-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48f8fad6, /127.0.0.1:36856 :> /127.0.0.1:44117] INACTIVE
05:24:03.985 [nioEventLoopGroup-404-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48f8fad6, /127.0.0.1:36856 :> /127.0.0.1:44117] UNREGISTERED
05:24:03.985 [nioEventLoopGroup-406-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-406-1
05:24:03.986 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:03.987 [nioEventLoopGroup-404-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x83a8fba1, /127.0.0.1:36858 => /127.0.0.1:44117] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44117
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:03.988 [nioEventLoopGroup-404-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
05:24:03.988 [nioEventLoopGroup-404-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x83a8fba1, /127.0.0.1:36858 => /127.0.0.1:44117] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:03.988 [nioEventLoopGroup-404-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x83a8fba1, /127.0.0.1:36858 => /127.0.0.1:44117] FLUSH
05:24:03.988 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:03.988 [nioEventLoopGroup-404-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x83a8fba1, /127.0.0.1:36858 => /127.0.0.1:44117] FLUSH
05:24:03.988 [nioEventLoopGroup-404-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x83a8fba1, /127.0.0.1:36858 :> /127.0.0.1:44117] INACTIVE
05:24:03.988 [nioEventLoopGroup-404-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x83a8fba1, /127.0.0.1:36858 :> /127.0.0.1:44117] UNREGISTERED
05:24:03.988 [nioEventLoopGroup-407-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-407-1
05:24:03.989 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:03.991 [nioEventLoopGroup-404-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5cbda417, /127.0.0.1:36860 => /127.0.0.1:44117] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44117
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:03.991 [nioEventLoopGroup-404-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:03.991 [nioEventLoopGroup-404-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5cbda417, /127.0.0.1:36860 => /127.0.0.1:44117] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:03.991 [nioEventLoopGroup-404-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5cbda417, /127.0.0.1:36860 => /127.0.0.1:44117] FLUSH
05:24:03.991 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:03.992 [nioEventLoopGroup-404-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5cbda417, /127.0.0.1:36860 => /127.0.0.1:44117] FLUSH
05:24:03.992 [nioEventLoopGroup-404-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5cbda417, /127.0.0.1:36860 :> /127.0.0.1:44117] INACTIVE
05:24:03.992 [nioEventLoopGroup-404-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5cbda417, /127.0.0.1:36860 :> /127.0.0.1:44117] UNREGISTERED
05:24:03.992 [nioEventLoopGroup-408-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-408-1
05:24:03.992 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:03.994 [nioEventLoopGroup-404-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x895ea2be, /127.0.0.1:36862 => /127.0.0.1:44117] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44117
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
05:24:03.994 [nioEventLoopGroup-404-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
05:24:03.994 [nioEventLoopGroup-404-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x895ea2be, /127.0.0.1:36862 => /127.0.0.1:44117] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:03.994 [nioEventLoopGroup-404-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x895ea2be, /127.0.0.1:36862 => /127.0.0.1:44117] FLUSH
05:24:03.995 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:03.995 [nioEventLoopGroup-404-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x895ea2be, /127.0.0.1:36862 => /127.0.0.1:44117] FLUSH
05:24:03.995 [nioEventLoopGroup-404-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x895ea2be, /127.0.0.1:36862 :> /127.0.0.1:44117] INACTIVE
05:24:03.995 [nioEventLoopGroup-404-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x895ea2be, /127.0.0.1:36862 :> /127.0.0.1:44117] UNREGISTERED
05:24:03.995 [nioEventLoopGroup-409-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-409-1
05:24:03.996 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:03.997 [nioEventLoopGroup-404-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xda99f4aa, /127.0.0.1:36864 => /127.0.0.1:44117] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44117
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
05:24:03.998 [nioEventLoopGroup-404-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
05:24:03.998 [nioEventLoopGroup-404-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xda99f4aa, /127.0.0.1:36864 => /127.0.0.1:44117] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:03.998 [nioEventLoopGroup-404-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xda99f4aa, /127.0.0.1:36864 => /127.0.0.1:44117] FLUSH
05:24:03.998 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:03.998 [nioEventLoopGroup-404-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xda99f4aa, /127.0.0.1:36864 => /127.0.0.1:44117] FLUSH
05:24:03.998 [nioEventLoopGroup-404-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xda99f4aa, /127.0.0.1:36864 :> /127.0.0.1:44117] INACTIVE
05:24:03.998 [nioEventLoopGroup-404-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xda99f4aa, /127.0.0.1:36864 :> /127.0.0.1:44117] UNREGISTERED
05:24:03.998 [nioEventLoopGroup-410-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-410-1
05:24:03.999 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:04.001 [nioEventLoopGroup-404-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x83e8dd4b, /127.0.0.1:36866 => /127.0.0.1:44117] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44117
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:04.002 [nioEventLoopGroup-404-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
05:24:04.002 [nioEventLoopGroup-404-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x83e8dd4b, /127.0.0.1:36866 => /127.0.0.1:44117] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:04.002 [nioEventLoopGroup-404-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x83e8dd4b, /127.0.0.1:36866 => /127.0.0.1:44117] FLUSH
05:24:04.002 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:04.002 [nioEventLoopGroup-411-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-411-1
05:24:04.002 [nioEventLoopGroup-404-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x83e8dd4b, /127.0.0.1:36866 => /127.0.0.1:44117] FLUSH
05:24:04.002 [nioEventLoopGroup-404-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x83e8dd4b, /127.0.0.1:36866 :> /127.0.0.1:44117] INACTIVE
05:24:04.002 [nioEventLoopGroup-404-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x83e8dd4b, /127.0.0.1:36866 :> /127.0.0.1:44117] UNREGISTERED
05:24:04.003 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:04.004 [nioEventLoopGroup-404-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x60d38ccc, /127.0.0.1:36868 => /127.0.0.1:44117] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44117
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:04.005 [nioEventLoopGroup-404-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
05:24:04.005 [nioEventLoopGroup-404-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x60d38ccc, /127.0.0.1:36868 => /127.0.0.1:44117] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:04.005 [nioEventLoopGroup-404-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x60d38ccc, /127.0.0.1:36868 => /127.0.0.1:44117] FLUSH
05:24:04.005 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:04.005 [nioEventLoopGroup-404-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x60d38ccc, /127.0.0.1:36868 => /127.0.0.1:44117] FLUSH
05:24:04.005 [nioEventLoopGroup-412-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-412-1
05:24:04.005 [nioEventLoopGroup-404-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x60d38ccc, /127.0.0.1:36868 :> /127.0.0.1:44117] INACTIVE
05:24:04.006 [nioEventLoopGroup-404-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x60d38ccc, /127.0.0.1:36868 :> /127.0.0.1:44117] UNREGISTERED
05:24:04.006 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:04.009 [nioEventLoopGroup-404-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4cdc3397, /127.0.0.1:36870 => /127.0.0.1:44117] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44117
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:04.010 [nioEventLoopGroup-404-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
05:24:04.010 [nioEventLoopGroup-404-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4cdc3397, /127.0.0.1:36870 => /127.0.0.1:44117] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:04.010 [nioEventLoopGroup-404-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4cdc3397, /127.0.0.1:36870 => /127.0.0.1:44117] FLUSH
05:24:04.010 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:04.010 [nioEventLoopGroup-404-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4cdc3397, /127.0.0.1:36870 => /127.0.0.1:44117] FLUSH
05:24:04.010 [nioEventLoopGroup-404-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4cdc3397, /127.0.0.1:36870 :> /127.0.0.1:44117] INACTIVE
05:24:04.010 [nioEventLoopGroup-413-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-413-1
05:24:04.010 [nioEventLoopGroup-404-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4cdc3397, /127.0.0.1:36870 :> /127.0.0.1:44117] UNREGISTERED
05:24:04.012 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:04.015 [nioEventLoopGroup-404-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x13d8f8b5, /127.0.0.1:36872 => /127.0.0.1:44117] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44117
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:04.015 [nioEventLoopGroup-404-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
05:24:04.015 [nioEventLoopGroup-404-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x13d8f8b5, /127.0.0.1:36872 => /127.0.0.1:44117] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:04.015 [nioEventLoopGroup-404-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x13d8f8b5, /127.0.0.1:36872 => /127.0.0.1:44117] FLUSH
05:24:04.016 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:04.016 [nioEventLoopGroup-404-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x13d8f8b5, /127.0.0.1:36872 => /127.0.0.1:44117] FLUSH
05:24:04.016 [nioEventLoopGroup-404-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x13d8f8b5, /127.0.0.1:36872 :> /127.0.0.1:44117] INACTIVE
05:24:04.016 [nioEventLoopGroup-404-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x13d8f8b5, /127.0.0.1:36872 :> /127.0.0.1:44117] UNREGISTERED
05:24:04.016 [nioEventLoopGroup-414-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-414-1
05:24:04.016 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:04.024 [nioEventLoopGroup-404-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5685f224, /127.0.0.1:36874 => /127.0.0.1:44117] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44117
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:04.024 [nioEventLoopGroup-404-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
05:24:04.024 [nioEventLoopGroup-404-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5685f224, /127.0.0.1:36874 => /127.0.0.1:44117] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:04.024 [nioEventLoopGroup-404-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5685f224, /127.0.0.1:36874 => /127.0.0.1:44117] FLUSH
05:24:04.025 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:04.025 [nioEventLoopGroup-404-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5685f224, /127.0.0.1:36874 => /127.0.0.1:44117] FLUSH
05:24:04.025 [nioEventLoopGroup-415-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-415-1
05:24:04.025 [nioEventLoopGroup-404-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5685f224, /127.0.0.1:36874 :> /127.0.0.1:44117] INACTIVE
05:24:04.025 [nioEventLoopGroup-404-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5685f224, /127.0.0.1:36874 :> /127.0.0.1:44117] UNREGISTERED
05:24:04.026 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:04.029 [nioEventLoopGroup-404-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x27032955, /127.0.0.1:36876 => /127.0.0.1:44117] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44117
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:04.030 [nioEventLoopGroup-404-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
05:24:04.030 [nioEventLoopGroup-404-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x27032955, /127.0.0.1:36876 => /127.0.0.1:44117] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:04.031 [nioEventLoopGroup-404-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x27032955, /127.0.0.1:36876 => /127.0.0.1:44117] FLUSH
05:24:04.031 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:04.031 [nioEventLoopGroup-404-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x27032955, /127.0.0.1:36876 => /127.0.0.1:44117] FLUSH
05:24:04.031 [nioEventLoopGroup-404-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x27032955, /127.0.0.1:36876 :> /127.0.0.1:44117] INACTIVE
05:24:04.031 [nioEventLoopGroup-416-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-416-1
05:24:04.031 [nioEventLoopGroup-404-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x27032955, /127.0.0.1:36876 :> /127.0.0.1:44117] UNREGISTERED
05:24:04.032 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:04.035 [nioEventLoopGroup-404-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x257db378, /127.0.0.1:36878 => /127.0.0.1:44117] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44117
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:04.036 [nioEventLoopGroup-404-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:04.036 [nioEventLoopGroup-404-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x257db378, /127.0.0.1:36878 => /127.0.0.1:44117] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:04.036 [nioEventLoopGroup-404-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x257db378, /127.0.0.1:36878 => /127.0.0.1:44117] FLUSH
05:24:04.036 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:04.036 [nioEventLoopGroup-404-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x257db378, /127.0.0.1:36878 => /127.0.0.1:44117] FLUSH
05:24:04.037 [nioEventLoopGroup-404-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x257db378, /127.0.0.1:36878 :> /127.0.0.1:44117] INACTIVE
05:24:04.037 [nioEventLoopGroup-417-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-417-1
05:24:04.037 [nioEventLoopGroup-404-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x257db378, /127.0.0.1:36878 :> /127.0.0.1:44117] UNREGISTERED
05:24:04.041 [nioEventLoopGroup-404-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x28294440, /127.0.0.1:36880 => /127.0.0.1:44117] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET / HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_102
Host: localhost:44117
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
05:24:04.041 [nioEventLoopGroup-404-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:44117" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/"
}
05:24:04.042 [nioEventLoopGroup-404-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:44117" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:24:04.042 [nioEventLoopGroup-404-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x28294440, /127.0.0.1:36880 => /127.0.0.1:44117] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 119, cap: 119/119))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 119
Connection: keep-alive, 119B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e |o miss -->Nothin|
|00000060| 67 20 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e |g special</body>|
|00000070| 3c 2f 68 74 6d 6c 3e |</html> |
+--------+-------------------------------------------------+----------------+
05:24:04.042 [nioEventLoopGroup-404-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x28294440, /127.0.0.1:36880 => /127.0.0.1:44117] FLUSH
05:24:04.044 [nioEventLoopGroup-404-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x28294440, /127.0.0.1:36880 => /127.0.0.1:44117] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET / HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_102
Host: localhost:44117
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
05:24:04.044 [nioEventLoopGroup-404-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:44117" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/"
}
05:24:04.045 [nioEventLoopGroup-404-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:44117" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:24:04.045 [nioEventLoopGroup-404-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x28294440, /127.0.0.1:36880 => /127.0.0.1:44117] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 119, cap: 119/119))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 119
Connection: keep-alive, 119B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e |o miss -->Nothin|
|00000060| 67 20 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e |g special</body>|
|00000070| 3c 2f 68 74 6d 6c 3e |</html> |
+--------+-------------------------------------------------+----------------+
05:24:04.045 [nioEventLoopGroup-404-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x28294440, /127.0.0.1:36880 => /127.0.0.1:44117] FLUSH
05:24:04.046 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
05:24:04.048 [nioEventLoopGroup-404-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa1e53335, /127.0.0.1:36882 => /127.0.0.1:44117] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:44117
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
05:24:04.049 [nioEventLoopGroup-404-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa1e53335, /127.0.0.1:36882 => /127.0.0.1:44117] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:04.049 [nioEventLoopGroup-404-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa1e53335, /127.0.0.1:36882 => /127.0.0.1:44117] FLUSH
05:24:04.049 [nioEventLoopGroup-404-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa1e53335, /127.0.0.1:36882 => /127.0.0.1:44117] CLOSE()
05:24:04.049 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:04.049 [nioEventLoopGroup-418-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-418-1
05:24:04.053 [nioEventLoopGroup-404-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-4
05:24:04.053 [nioEventLoopGroup-404-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-7
05:24:04.053 [nioEventLoopGroup-404-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-1
05:24:04.053 [nioEventLoopGroup-404-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-9
05:24:04.053 [nioEventLoopGroup-404-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-11
05:24:04.053 [nioEventLoopGroup-404-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-3
05:24:04.053 [nioEventLoopGroup-404-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-8
05:24:04.053 [nioEventLoopGroup-404-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-2
05:24:04.053 [nioEventLoopGroup-404-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-10
05:24:04.053 [nioEventLoopGroup-404-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-5
05:24:04.053 [nioEventLoopGroup-404-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-6
05:24:04.053 [nioEventLoopGroup-404-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-12
05:24:04.053 [nioEventLoopGroup-404-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x28294440, /127.0.0.1:36880 :> /127.0.0.1:44117] INACTIVE
05:24:04.053 [nioEventLoopGroup-404-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-13
05:24:04.054 [nioEventLoopGroup-404-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x28294440, /127.0.0.1:36880 :> /127.0.0.1:44117] UNREGISTERED
05:24:04.126 [nioEventLoopGroup-388-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x747c7450, /127.0.0.1:56518 :> /127.0.0.1:39007] FLUSH
05:24:04.126 [nioEventLoopGroup-388-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x747c7450, /127.0.0.1:56518 :> /127.0.0.1:39007] INACTIVE
05:24:04.126 [nioEventLoopGroup-388-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x747c7450, /127.0.0.1:56518 :> /127.0.0.1:39007] UNREGISTERED
05:24:04.127 [nioEventLoopGroup-388-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-16
05:24:04.219 [nioEventLoopGroup-372-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-14
05:24:04.402 [MockServer thread for port: 34147] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 34147
05:24:04.403 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:04.405 [nioEventLoopGroup-420-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x39b880b9, /127.0.0.1:54234 => /127.0.0.1:34147] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34147
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:04.405 [nioEventLoopGroup-420-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:04.405 [nioEventLoopGroup-420-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x39b880b9, /127.0.0.1:54234 => /127.0.0.1:34147] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:04.405 [nioEventLoopGroup-420-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x39b880b9, /127.0.0.1:54234 => /127.0.0.1:34147] FLUSH
05:24:04.405 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:04.406 [nioEventLoopGroup-420-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x39b880b9, /127.0.0.1:54234 => /127.0.0.1:34147] FLUSH
05:24:04.406 [nioEventLoopGroup-421-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-421-1
05:24:04.406 [nioEventLoopGroup-420-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x39b880b9, /127.0.0.1:54234 :> /127.0.0.1:34147] INACTIVE
05:24:04.406 [nioEventLoopGroup-420-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x39b880b9, /127.0.0.1:54234 :> /127.0.0.1:34147] UNREGISTERED
05:24:04.407 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:04.409 [nioEventLoopGroup-420-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5e0aa0f9, /127.0.0.1:54236 => /127.0.0.1:34147] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34147
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:04.410 [nioEventLoopGroup-420-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
05:24:04.410 [nioEventLoopGroup-420-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5e0aa0f9, /127.0.0.1:54236 => /127.0.0.1:34147] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:04.410 [nioEventLoopGroup-420-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5e0aa0f9, /127.0.0.1:54236 => /127.0.0.1:34147] FLUSH
05:24:04.410 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:04.410 [nioEventLoopGroup-420-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5e0aa0f9, /127.0.0.1:54236 => /127.0.0.1:34147] FLUSH
05:24:04.410 [nioEventLoopGroup-422-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-422-1
05:24:04.410 [nioEventLoopGroup-420-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5e0aa0f9, /127.0.0.1:54236 :> /127.0.0.1:34147] INACTIVE
05:24:04.410 [nioEventLoopGroup-420-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5e0aa0f9, /127.0.0.1:54236 :> /127.0.0.1:34147] UNREGISTERED
05:24:04.411 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:04.414 [nioEventLoopGroup-420-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbae1512a, /127.0.0.1:54238 => /127.0.0.1:34147] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34147
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:04.414 [nioEventLoopGroup-420-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
05:24:04.414 [nioEventLoopGroup-420-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbae1512a, /127.0.0.1:54238 => /127.0.0.1:34147] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:04.414 [nioEventLoopGroup-420-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbae1512a, /127.0.0.1:54238 => /127.0.0.1:34147] FLUSH
05:24:04.415 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:04.415 [nioEventLoopGroup-420-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbae1512a, /127.0.0.1:54238 => /127.0.0.1:34147] FLUSH
05:24:04.415 [nioEventLoopGroup-423-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-423-1
05:24:04.415 [nioEventLoopGroup-420-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbae1512a, /127.0.0.1:54238 :> /127.0.0.1:34147] INACTIVE
05:24:04.415 [nioEventLoopGroup-420-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbae1512a, /127.0.0.1:54238 :> /127.0.0.1:34147] UNREGISTERED
05:24:04.415 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:04.418 [nioEventLoopGroup-420-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd22a2a2c, /127.0.0.1:54240 => /127.0.0.1:34147] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34147
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:04.419 [nioEventLoopGroup-420-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:04.419 [nioEventLoopGroup-420-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd22a2a2c, /127.0.0.1:54240 => /127.0.0.1:34147] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:04.419 [nioEventLoopGroup-420-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd22a2a2c, /127.0.0.1:54240 => /127.0.0.1:34147] FLUSH
05:24:04.419 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:04.419 [nioEventLoopGroup-420-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd22a2a2c, /127.0.0.1:54240 => /127.0.0.1:34147] FLUSH
05:24:04.419 [nioEventLoopGroup-420-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd22a2a2c, /127.0.0.1:54240 :> /127.0.0.1:34147] INACTIVE
05:24:04.419 [nioEventLoopGroup-420-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd22a2a2c, /127.0.0.1:54240 :> /127.0.0.1:34147] UNREGISTERED
05:24:04.419 [nioEventLoopGroup-424-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-424-1
05:24:04.420 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:04.422 [nioEventLoopGroup-420-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a6f887c, /127.0.0.1:54242 => /127.0.0.1:34147] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34147
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
05:24:04.423 [nioEventLoopGroup-420-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
05:24:04.423 [nioEventLoopGroup-420-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a6f887c, /127.0.0.1:54242 => /127.0.0.1:34147] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:04.423 [nioEventLoopGroup-420-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a6f887c, /127.0.0.1:54242 => /127.0.0.1:34147] FLUSH
05:24:04.423 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:04.423 [nioEventLoopGroup-420-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a6f887c, /127.0.0.1:54242 => /127.0.0.1:34147] FLUSH
05:24:04.423 [nioEventLoopGroup-425-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-425-1
05:24:04.423 [nioEventLoopGroup-420-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a6f887c, /127.0.0.1:54242 :> /127.0.0.1:34147] INACTIVE
05:24:04.423 [nioEventLoopGroup-420-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a6f887c, /127.0.0.1:54242 :> /127.0.0.1:34147] UNREGISTERED
05:24:04.447 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:04.449 [nioEventLoopGroup-420-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x95b5bd94, /127.0.0.1:54244 => /127.0.0.1:34147] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34147
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
05:24:04.449 [nioEventLoopGroup-420-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
05:24:04.449 [nioEventLoopGroup-420-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x95b5bd94, /127.0.0.1:54244 => /127.0.0.1:34147] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:04.449 [nioEventLoopGroup-420-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x95b5bd94, /127.0.0.1:54244 => /127.0.0.1:34147] FLUSH
05:24:04.449 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:04.449 [nioEventLoopGroup-420-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x95b5bd94, /127.0.0.1:54244 => /127.0.0.1:34147] FLUSH
05:24:04.449 [nioEventLoopGroup-420-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x95b5bd94, /127.0.0.1:54244 :> /127.0.0.1:34147] INACTIVE
05:24:04.449 [nioEventLoopGroup-426-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-426-1
05:24:04.449 [nioEventLoopGroup-420-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x95b5bd94, /127.0.0.1:54244 :> /127.0.0.1:34147] UNREGISTERED
05:24:04.450 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:04.451 [nioEventLoopGroup-420-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x84fde2be, /127.0.0.1:54246 => /127.0.0.1:34147] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34147
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:04.451 [nioEventLoopGroup-420-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
05:24:04.451 [nioEventLoopGroup-420-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x84fde2be, /127.0.0.1:54246 => /127.0.0.1:34147] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:04.451 [nioEventLoopGroup-420-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x84fde2be, /127.0.0.1:54246 => /127.0.0.1:34147] FLUSH
05:24:04.452 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:04.452 [nioEventLoopGroup-420-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x84fde2be, /127.0.0.1:54246 => /127.0.0.1:34147] FLUSH
05:24:04.452 [nioEventLoopGroup-427-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-427-1
05:24:04.452 [nioEventLoopGroup-420-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x84fde2be, /127.0.0.1:54246 :> /127.0.0.1:34147] INACTIVE
05:24:04.452 [nioEventLoopGroup-420-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x84fde2be, /127.0.0.1:54246 :> /127.0.0.1:34147] UNREGISTERED
05:24:04.452 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:04.453 [nioEventLoopGroup-420-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb566a087, /127.0.0.1:54248 => /127.0.0.1:34147] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34147
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:04.454 [nioEventLoopGroup-420-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
05:24:04.454 [nioEventLoopGroup-420-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb566a087, /127.0.0.1:54248 => /127.0.0.1:34147] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:04.454 [nioEventLoopGroup-420-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb566a087, /127.0.0.1:54248 => /127.0.0.1:34147] FLUSH
05:24:04.454 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:04.454 [nioEventLoopGroup-420-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb566a087, /127.0.0.1:54248 => /127.0.0.1:34147] FLUSH
05:24:04.454 [nioEventLoopGroup-420-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb566a087, /127.0.0.1:54248 :> /127.0.0.1:34147] INACTIVE
05:24:04.454 [nioEventLoopGroup-420-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb566a087, /127.0.0.1:54248 :> /127.0.0.1:34147] UNREGISTERED
05:24:04.454 [nioEventLoopGroup-428-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-428-1
05:24:04.455 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:04.456 [nioEventLoopGroup-420-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2b049641, /127.0.0.1:54250 => /127.0.0.1:34147] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34147
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:04.456 [nioEventLoopGroup-420-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
05:24:04.456 [nioEventLoopGroup-420-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2b049641, /127.0.0.1:54250 => /127.0.0.1:34147] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:04.456 [nioEventLoopGroup-420-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2b049641, /127.0.0.1:54250 => /127.0.0.1:34147] FLUSH
05:24:04.456 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:04.456 [nioEventLoopGroup-420-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2b049641, /127.0.0.1:54250 => /127.0.0.1:34147] FLUSH
05:24:04.456 [nioEventLoopGroup-429-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-429-1
05:24:04.456 [nioEventLoopGroup-420-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2b049641, /127.0.0.1:54250 :> /127.0.0.1:34147] INACTIVE
05:24:04.457 [nioEventLoopGroup-420-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2b049641, /127.0.0.1:54250 :> /127.0.0.1:34147] UNREGISTERED
05:24:04.457 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:04.458 [nioEventLoopGroup-420-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xffabbf31, /127.0.0.1:54252 => /127.0.0.1:34147] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34147
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:04.458 [nioEventLoopGroup-420-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
05:24:04.458 [nioEventLoopGroup-420-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xffabbf31, /127.0.0.1:54252 => /127.0.0.1:34147] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:04.458 [nioEventLoopGroup-420-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xffabbf31, /127.0.0.1:54252 => /127.0.0.1:34147] FLUSH
05:24:04.458 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:04.458 [nioEventLoopGroup-420-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xffabbf31, /127.0.0.1:54252 => /127.0.0.1:34147] FLUSH
05:24:04.459 [nioEventLoopGroup-430-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-430-1
05:24:04.459 [nioEventLoopGroup-420-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xffabbf31, /127.0.0.1:54252 :> /127.0.0.1:34147] INACTIVE
05:24:04.459 [nioEventLoopGroup-420-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xffabbf31, /127.0.0.1:54252 :> /127.0.0.1:34147] UNREGISTERED
05:24:04.459 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:04.460 [nioEventLoopGroup-420-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcfd9cf59, /127.0.0.1:54254 => /127.0.0.1:34147] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34147
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:04.460 [nioEventLoopGroup-420-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
05:24:04.460 [nioEventLoopGroup-420-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcfd9cf59, /127.0.0.1:54254 => /127.0.0.1:34147] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:04.460 [nioEventLoopGroup-420-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcfd9cf59, /127.0.0.1:54254 => /127.0.0.1:34147] FLUSH
05:24:04.460 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:04.461 [nioEventLoopGroup-420-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcfd9cf59, /127.0.0.1:54254 => /127.0.0.1:34147] FLUSH
05:24:04.461 [nioEventLoopGroup-431-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-431-1
05:24:04.461 [nioEventLoopGroup-420-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcfd9cf59, /127.0.0.1:54254 :> /127.0.0.1:34147] INACTIVE
05:24:04.461 [nioEventLoopGroup-420-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcfd9cf59, /127.0.0.1:54254 :> /127.0.0.1:34147] UNREGISTERED
05:24:04.461 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:04.462 [nioEventLoopGroup-420-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6a321800, /127.0.0.1:54256 => /127.0.0.1:34147] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34147
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:04.463 [nioEventLoopGroup-420-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
05:24:04.463 [nioEventLoopGroup-420-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6a321800, /127.0.0.1:54256 => /127.0.0.1:34147] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:04.463 [nioEventLoopGroup-420-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6a321800, /127.0.0.1:54256 => /127.0.0.1:34147] FLUSH
05:24:04.463 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:04.463 [nioEventLoopGroup-420-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6a321800, /127.0.0.1:54256 => /127.0.0.1:34147] FLUSH
05:24:04.463 [nioEventLoopGroup-420-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6a321800, /127.0.0.1:54256 :> /127.0.0.1:34147] INACTIVE
05:24:04.463 [nioEventLoopGroup-432-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-432-1
05:24:04.463 [nioEventLoopGroup-420-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6a321800, /127.0.0.1:54256 :> /127.0.0.1:34147] UNREGISTERED
05:24:04.463 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:04.464 [nioEventLoopGroup-420-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1857a464, /127.0.0.1:54258 => /127.0.0.1:34147] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34147
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:04.465 [nioEventLoopGroup-420-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:04.465 [nioEventLoopGroup-420-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1857a464, /127.0.0.1:54258 => /127.0.0.1:34147] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:04.465 [nioEventLoopGroup-420-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1857a464, /127.0.0.1:54258 => /127.0.0.1:34147] FLUSH
05:24:04.465 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:04.465 [nioEventLoopGroup-420-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1857a464, /127.0.0.1:54258 => /127.0.0.1:34147] FLUSH
05:24:04.465 [nioEventLoopGroup-433-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-433-1
05:24:04.465 [nioEventLoopGroup-420-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1857a464, /127.0.0.1:54258 :> /127.0.0.1:34147] INACTIVE
05:24:04.465 [nioEventLoopGroup-420-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1857a464, /127.0.0.1:54258 :> /127.0.0.1:34147] UNREGISTERED
05:24:04.470 [nioEventLoopGroup-420-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x60fdf942, /127.0.0.1:54260 => /127.0.0.1:34147] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /foo HTTP/1.1
Host: localhost:34147
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_102)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
05:24:04.470 [nioEventLoopGroup-420-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34147" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:04.471 [nioEventLoopGroup-420-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34147" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = true
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:04.471 [nioEventLoopGroup-420-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34147" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = true
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:24:04.471 [nioEventLoopGroup-420-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34147" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/foo"
}
05:24:04.471 [nioEventLoopGroup-420-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34147" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:24:04.471 [nioEventLoopGroup-420-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x60fdf942, /127.0.0.1:54260 => /127.0.0.1:34147] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 119, cap: 119/119))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 119
Connection: keep-alive, 119B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e |o miss -->Nothin|
|00000060| 67 20 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e |g special</body>|
|00000070| 3c 2f 68 74 6d 6c 3e |</html> |
+--------+-------------------------------------------------+----------------+
05:24:04.471 [nioEventLoopGroup-420-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x60fdf942, /127.0.0.1:54260 => /127.0.0.1:34147] FLUSH
05:24:04.474 [nioEventLoopGroup-420-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa61ec60b, /127.0.0.1:54262 => /127.0.0.1:34147] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /foo HTTP/1.1
Host: localhost:34147
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_102)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
05:24:04.475 [nioEventLoopGroup-420-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34147" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:04.475 [nioEventLoopGroup-420-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34147" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = true
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:04.475 [nioEventLoopGroup-420-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34147" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = true
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:24:04.475 [nioEventLoopGroup-420-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34147" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/foo"
}
05:24:04.475 [nioEventLoopGroup-420-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34147" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:24:04.476 [nioEventLoopGroup-420-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa61ec60b, /127.0.0.1:54262 => /127.0.0.1:34147] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 119, cap: 119/119))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 119
Connection: keep-alive, 119B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e |o miss -->Nothin|
|00000060| 67 20 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e |g special</body>|
|00000070| 3c 2f 68 74 6d 6c 3e |</html> |
+--------+-------------------------------------------------+----------------+
05:24:04.476 [nioEventLoopGroup-420-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa61ec60b, /127.0.0.1:54262 => /127.0.0.1:34147] FLUSH
05:24:04.476 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
05:24:04.477 [nioEventLoopGroup-420-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3927f50b, /127.0.0.1:54264 => /127.0.0.1:34147] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:34147
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
05:24:04.477 [nioEventLoopGroup-420-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3927f50b, /127.0.0.1:54264 => /127.0.0.1:34147] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:04.478 [nioEventLoopGroup-420-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3927f50b, /127.0.0.1:54264 => /127.0.0.1:34147] FLUSH
05:24:04.478 [nioEventLoopGroup-420-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3927f50b, /127.0.0.1:54264 => /127.0.0.1:34147] CLOSE()
05:24:04.478 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:04.478 [nioEventLoopGroup-434-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-434-1
05:24:04.481 [nioEventLoopGroup-420-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-1
05:24:04.481 [nioEventLoopGroup-420-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-2
05:24:04.481 [nioEventLoopGroup-420-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-4
05:24:04.481 [nioEventLoopGroup-420-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-7
05:24:04.481 [nioEventLoopGroup-420-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-6
05:24:04.481 [nioEventLoopGroup-420-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-8
05:24:04.481 [nioEventLoopGroup-420-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-9
05:24:04.481 [nioEventLoopGroup-420-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-12
05:24:04.481 [nioEventLoopGroup-420-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-13
05:24:04.481 [nioEventLoopGroup-420-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x60fdf942, /127.0.0.1:54260 :> /127.0.0.1:34147] INACTIVE
05:24:04.481 [nioEventLoopGroup-420-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa61ec60b, /127.0.0.1:54262 :> /127.0.0.1:34147] INACTIVE
05:24:04.481 [nioEventLoopGroup-420-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x60fdf942, /127.0.0.1:54260 :> /127.0.0.1:34147] UNREGISTERED
05:24:04.481 [nioEventLoopGroup-420-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa61ec60b, /127.0.0.1:54262 :> /127.0.0.1:34147] UNREGISTERED
05:24:04.482 [nioEventLoopGroup-420-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-11
05:24:04.484 [nioEventLoopGroup-420-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-3
05:24:04.484 [nioEventLoopGroup-420-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-5
05:24:04.484 [nioEventLoopGroup-420-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-10
05:24:04.553 [nioEventLoopGroup-404-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa1e53335, /127.0.0.1:36882 :> /127.0.0.1:44117] FLUSH
05:24:04.553 [nioEventLoopGroup-404-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa1e53335, /127.0.0.1:36882 :> /127.0.0.1:44117] INACTIVE
05:24:04.553 [nioEventLoopGroup-404-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa1e53335, /127.0.0.1:36882 :> /127.0.0.1:44117] UNREGISTERED
05:24:04.554 [nioEventLoopGroup-404-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-15
05:24:04.628 [nioEventLoopGroup-388-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-15
05:24:04.630 [nioEventLoopGroup-388-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-14
05:24:04.830 [MockServer thread for port: 46775] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 46775
05:24:04.830 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:04.832 [nioEventLoopGroup-436-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x436a35ae, /127.0.0.1:54838 => /127.0.0.1:46775] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46775
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:04.832 [nioEventLoopGroup-436-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:04.832 [nioEventLoopGroup-436-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x436a35ae, /127.0.0.1:54838 => /127.0.0.1:46775] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:04.832 [nioEventLoopGroup-436-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x436a35ae, /127.0.0.1:54838 => /127.0.0.1:46775] FLUSH
05:24:04.832 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:04.833 [nioEventLoopGroup-436-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x436a35ae, /127.0.0.1:54838 => /127.0.0.1:46775] FLUSH
05:24:04.833 [nioEventLoopGroup-436-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x436a35ae, /127.0.0.1:54838 :> /127.0.0.1:46775] INACTIVE
05:24:04.833 [nioEventLoopGroup-436-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x436a35ae, /127.0.0.1:54838 :> /127.0.0.1:46775] UNREGISTERED
05:24:04.833 [nioEventLoopGroup-437-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-437-1
05:24:04.833 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:04.834 [nioEventLoopGroup-436-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5f88f63, /127.0.0.1:54840 => /127.0.0.1:46775] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46775
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:04.835 [nioEventLoopGroup-436-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
05:24:04.835 [nioEventLoopGroup-436-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5f88f63, /127.0.0.1:54840 => /127.0.0.1:46775] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:04.835 [nioEventLoopGroup-436-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5f88f63, /127.0.0.1:54840 => /127.0.0.1:46775] FLUSH
05:24:04.835 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:04.835 [nioEventLoopGroup-436-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5f88f63, /127.0.0.1:54840 => /127.0.0.1:46775] FLUSH
05:24:04.835 [nioEventLoopGroup-436-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5f88f63, /127.0.0.1:54840 :> /127.0.0.1:46775] INACTIVE
05:24:04.835 [nioEventLoopGroup-436-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5f88f63, /127.0.0.1:54840 :> /127.0.0.1:46775] UNREGISTERED
05:24:04.835 [nioEventLoopGroup-438-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-438-1
05:24:04.836 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:04.837 [nioEventLoopGroup-436-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc03ce50c, /127.0.0.1:54842 => /127.0.0.1:46775] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46775
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:04.837 [nioEventLoopGroup-436-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
05:24:04.837 [nioEventLoopGroup-436-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc03ce50c, /127.0.0.1:54842 => /127.0.0.1:46775] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:04.837 [nioEventLoopGroup-436-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc03ce50c, /127.0.0.1:54842 => /127.0.0.1:46775] FLUSH
05:24:04.837 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:04.837 [nioEventLoopGroup-436-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc03ce50c, /127.0.0.1:54842 => /127.0.0.1:46775] FLUSH
05:24:04.837 [nioEventLoopGroup-436-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc03ce50c, /127.0.0.1:54842 :> /127.0.0.1:46775] INACTIVE
05:24:04.837 [nioEventLoopGroup-439-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-439-1
05:24:04.837 [nioEventLoopGroup-436-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc03ce50c, /127.0.0.1:54842 :> /127.0.0.1:46775] UNREGISTERED
05:24:04.838 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:04.839 [nioEventLoopGroup-436-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x83a72e72, /127.0.0.1:54844 => /127.0.0.1:46775] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46775
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:04.839 [nioEventLoopGroup-436-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:04.839 [nioEventLoopGroup-436-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x83a72e72, /127.0.0.1:54844 => /127.0.0.1:46775] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:04.839 [nioEventLoopGroup-436-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x83a72e72, /127.0.0.1:54844 => /127.0.0.1:46775] FLUSH
05:24:04.840 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:04.840 [nioEventLoopGroup-436-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x83a72e72, /127.0.0.1:54844 => /127.0.0.1:46775] FLUSH
05:24:04.840 [nioEventLoopGroup-436-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x83a72e72, /127.0.0.1:54844 :> /127.0.0.1:46775] INACTIVE
05:24:04.840 [nioEventLoopGroup-440-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-440-1
05:24:04.840 [nioEventLoopGroup-436-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x83a72e72, /127.0.0.1:54844 :> /127.0.0.1:46775] UNREGISTERED
05:24:04.840 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:04.841 [nioEventLoopGroup-436-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x791a1f80, /127.0.0.1:54846 => /127.0.0.1:46775] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46775
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
05:24:04.842 [nioEventLoopGroup-436-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
05:24:04.842 [nioEventLoopGroup-436-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x791a1f80, /127.0.0.1:54846 => /127.0.0.1:46775] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:04.842 [nioEventLoopGroup-436-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x791a1f80, /127.0.0.1:54846 => /127.0.0.1:46775] FLUSH
05:24:04.842 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:04.842 [nioEventLoopGroup-436-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x791a1f80, /127.0.0.1:54846 => /127.0.0.1:46775] FLUSH
05:24:04.842 [nioEventLoopGroup-441-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-441-1
05:24:04.842 [nioEventLoopGroup-436-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x791a1f80, /127.0.0.1:54846 :> /127.0.0.1:46775] INACTIVE
05:24:04.842 [nioEventLoopGroup-436-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x791a1f80, /127.0.0.1:54846 :> /127.0.0.1:46775] UNREGISTERED
05:24:04.843 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:04.844 [nioEventLoopGroup-436-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf21466fc, /127.0.0.1:54848 => /127.0.0.1:46775] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46775
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
05:24:04.844 [nioEventLoopGroup-436-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
05:24:04.844 [nioEventLoopGroup-436-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf21466fc, /127.0.0.1:54848 => /127.0.0.1:46775] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:04.845 [nioEventLoopGroup-436-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf21466fc, /127.0.0.1:54848 => /127.0.0.1:46775] FLUSH
05:24:04.845 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:04.845 [nioEventLoopGroup-436-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf21466fc, /127.0.0.1:54848 => /127.0.0.1:46775] FLUSH
05:24:04.845 [nioEventLoopGroup-436-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf21466fc, /127.0.0.1:54848 :> /127.0.0.1:46775] INACTIVE
05:24:04.845 [nioEventLoopGroup-436-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf21466fc, /127.0.0.1:54848 :> /127.0.0.1:46775] UNREGISTERED
05:24:04.845 [nioEventLoopGroup-442-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-442-1
05:24:04.845 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:04.846 [nioEventLoopGroup-436-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdefaa3b7, /127.0.0.1:54850 => /127.0.0.1:46775] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46775
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:04.847 [nioEventLoopGroup-436-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
05:24:04.847 [nioEventLoopGroup-436-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdefaa3b7, /127.0.0.1:54850 => /127.0.0.1:46775] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:04.847 [nioEventLoopGroup-436-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdefaa3b7, /127.0.0.1:54850 => /127.0.0.1:46775] FLUSH
05:24:04.847 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:04.847 [nioEventLoopGroup-436-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdefaa3b7, /127.0.0.1:54850 => /127.0.0.1:46775] FLUSH
05:24:04.847 [nioEventLoopGroup-436-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdefaa3b7, /127.0.0.1:54850 :> /127.0.0.1:46775] INACTIVE
05:24:04.847 [nioEventLoopGroup-436-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdefaa3b7, /127.0.0.1:54850 :> /127.0.0.1:46775] UNREGISTERED
05:24:04.847 [nioEventLoopGroup-443-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-443-1
05:24:04.848 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:04.849 [nioEventLoopGroup-436-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x26ccc1b4, /127.0.0.1:54852 => /127.0.0.1:46775] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46775
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:04.849 [nioEventLoopGroup-436-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
05:24:04.849 [nioEventLoopGroup-436-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x26ccc1b4, /127.0.0.1:54852 => /127.0.0.1:46775] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:04.849 [nioEventLoopGroup-436-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x26ccc1b4, /127.0.0.1:54852 => /127.0.0.1:46775] FLUSH
05:24:04.849 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:04.849 [nioEventLoopGroup-436-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x26ccc1b4, /127.0.0.1:54852 => /127.0.0.1:46775] FLUSH
05:24:04.849 [nioEventLoopGroup-436-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x26ccc1b4, /127.0.0.1:54852 :> /127.0.0.1:46775] INACTIVE
05:24:04.849 [nioEventLoopGroup-436-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x26ccc1b4, /127.0.0.1:54852 :> /127.0.0.1:46775] UNREGISTERED
05:24:04.849 [nioEventLoopGroup-444-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-444-1
05:24:04.850 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:04.851 [nioEventLoopGroup-436-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf8d8e019, /127.0.0.1:54854 => /127.0.0.1:46775] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46775
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:04.851 [nioEventLoopGroup-436-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
05:24:04.852 [nioEventLoopGroup-436-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf8d8e019, /127.0.0.1:54854 => /127.0.0.1:46775] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:04.852 [nioEventLoopGroup-436-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf8d8e019, /127.0.0.1:54854 => /127.0.0.1:46775] FLUSH
05:24:04.852 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:04.852 [nioEventLoopGroup-436-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf8d8e019, /127.0.0.1:54854 => /127.0.0.1:46775] FLUSH
05:24:04.852 [nioEventLoopGroup-436-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf8d8e019, /127.0.0.1:54854 :> /127.0.0.1:46775] INACTIVE
05:24:04.852 [nioEventLoopGroup-445-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-445-1
05:24:04.852 [nioEventLoopGroup-436-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf8d8e019, /127.0.0.1:54854 :> /127.0.0.1:46775] UNREGISTERED
05:24:04.852 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:04.853 [nioEventLoopGroup-436-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ca301f0, /127.0.0.1:54856 => /127.0.0.1:46775] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46775
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:04.854 [nioEventLoopGroup-436-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
05:24:04.854 [nioEventLoopGroup-436-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ca301f0, /127.0.0.1:54856 => /127.0.0.1:46775] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:04.854 [nioEventLoopGroup-436-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ca301f0, /127.0.0.1:54856 => /127.0.0.1:46775] FLUSH
05:24:04.854 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:04.854 [nioEventLoopGroup-436-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ca301f0, /127.0.0.1:54856 => /127.0.0.1:46775] FLUSH
05:24:04.854 [nioEventLoopGroup-436-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ca301f0, /127.0.0.1:54856 :> /127.0.0.1:46775] INACTIVE
05:24:04.854 [nioEventLoopGroup-436-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ca301f0, /127.0.0.1:54856 :> /127.0.0.1:46775] UNREGISTERED
05:24:04.854 [nioEventLoopGroup-446-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-446-1
05:24:04.854 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:04.856 [nioEventLoopGroup-436-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x863feef6, /127.0.0.1:54858 => /127.0.0.1:46775] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46775
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:04.856 [nioEventLoopGroup-436-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
05:24:04.856 [nioEventLoopGroup-436-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x863feef6, /127.0.0.1:54858 => /127.0.0.1:46775] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:04.856 [nioEventLoopGroup-436-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x863feef6, /127.0.0.1:54858 => /127.0.0.1:46775] FLUSH
05:24:04.856 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:04.856 [nioEventLoopGroup-436-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x863feef6, /127.0.0.1:54858 => /127.0.0.1:46775] FLUSH
05:24:04.856 [nioEventLoopGroup-436-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x863feef6, /127.0.0.1:54858 :> /127.0.0.1:46775] INACTIVE
05:24:04.856 [nioEventLoopGroup-447-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-447-1
05:24:04.856 [nioEventLoopGroup-436-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x863feef6, /127.0.0.1:54858 :> /127.0.0.1:46775] UNREGISTERED
05:24:04.857 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:04.858 [nioEventLoopGroup-436-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x09af9f09, /127.0.0.1:54860 => /127.0.0.1:46775] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46775
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:04.858 [nioEventLoopGroup-436-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
05:24:04.858 [nioEventLoopGroup-436-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x09af9f09, /127.0.0.1:54860 => /127.0.0.1:46775] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:04.858 [nioEventLoopGroup-436-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x09af9f09, /127.0.0.1:54860 => /127.0.0.1:46775] FLUSH
05:24:04.858 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:04.858 [nioEventLoopGroup-436-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x09af9f09, /127.0.0.1:54860 => /127.0.0.1:46775] FLUSH
05:24:04.859 [nioEventLoopGroup-436-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x09af9f09, /127.0.0.1:54860 :> /127.0.0.1:46775] INACTIVE
05:24:04.859 [nioEventLoopGroup-448-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-448-1
05:24:04.859 [nioEventLoopGroup-436-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x09af9f09, /127.0.0.1:54860 :> /127.0.0.1:46775] UNREGISTERED
05:24:04.859 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:04.860 [nioEventLoopGroup-436-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdf51a1fe, /127.0.0.1:54862 => /127.0.0.1:46775] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46775
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:04.860 [nioEventLoopGroup-436-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:04.861 [nioEventLoopGroup-436-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdf51a1fe, /127.0.0.1:54862 => /127.0.0.1:46775] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:04.861 [nioEventLoopGroup-436-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdf51a1fe, /127.0.0.1:54862 => /127.0.0.1:46775] FLUSH
05:24:04.861 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:04.861 [nioEventLoopGroup-436-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdf51a1fe, /127.0.0.1:54862 => /127.0.0.1:46775] FLUSH
05:24:04.861 [nioEventLoopGroup-449-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-449-1
05:24:04.861 [nioEventLoopGroup-436-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdf51a1fe, /127.0.0.1:54862 :> /127.0.0.1:46775] INACTIVE
05:24:04.861 [nioEventLoopGroup-436-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdf51a1fe, /127.0.0.1:54862 :> /127.0.0.1:46775] UNREGISTERED
05:24:04.862 [nioEventLoopGroup-436-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd9bdfee4, /127.0.0.1:54864 => /127.0.0.1:46775] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /foo HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_102
Host: localhost:46775
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
05:24:04.862 [nioEventLoopGroup-436-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:46775" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:04.862 [nioEventLoopGroup-436-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:46775" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = true
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:04.863 [nioEventLoopGroup-436-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:46775" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = true
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:24:04.863 [nioEventLoopGroup-436-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:46775" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/foo"
}
05:24:04.863 [nioEventLoopGroup-436-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:46775" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:24:04.863 [nioEventLoopGroup-436-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd9bdfee4, /127.0.0.1:54864 => /127.0.0.1:46775] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 119, cap: 119/119))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 119
Connection: keep-alive, 119B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e |o miss -->Nothin|
|00000060| 67 20 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e |g special</body>|
|00000070| 3c 2f 68 74 6d 6c 3e |</html> |
+--------+-------------------------------------------------+----------------+
05:24:04.863 [nioEventLoopGroup-436-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd9bdfee4, /127.0.0.1:54864 => /127.0.0.1:46775] FLUSH
05:24:04.864 [nioEventLoopGroup-436-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd9bdfee4, /127.0.0.1:54864 => /127.0.0.1:46775] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /foo HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_102
Host: localhost:46775
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
05:24:04.865 [nioEventLoopGroup-436-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:46775" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:04.865 [nioEventLoopGroup-436-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:46775" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = true
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:04.865 [nioEventLoopGroup-436-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:46775" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = true
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:24:04.865 [nioEventLoopGroup-436-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:46775" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/foo"
}
05:24:04.865 [nioEventLoopGroup-436-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:46775" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:24:04.865 [nioEventLoopGroup-436-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd9bdfee4, /127.0.0.1:54864 => /127.0.0.1:46775] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 119, cap: 119/119))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 119
Connection: keep-alive, 119B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e |o miss -->Nothin|
|00000060| 67 20 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e |g special</body>|
|00000070| 3c 2f 68 74 6d 6c 3e |</html> |
+--------+-------------------------------------------------+----------------+
05:24:04.865 [nioEventLoopGroup-436-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd9bdfee4, /127.0.0.1:54864 => /127.0.0.1:46775] FLUSH
05:24:04.866 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
05:24:04.867 [nioEventLoopGroup-436-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf75d50f6, /127.0.0.1:54866 => /127.0.0.1:46775] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:46775
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
05:24:04.867 [nioEventLoopGroup-436-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf75d50f6, /127.0.0.1:54866 => /127.0.0.1:46775] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:04.867 [nioEventLoopGroup-436-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf75d50f6, /127.0.0.1:54866 => /127.0.0.1:46775] FLUSH
05:24:04.867 [nioEventLoopGroup-436-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf75d50f6, /127.0.0.1:54866 => /127.0.0.1:46775] CLOSE()
05:24:04.867 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:04.868 [nioEventLoopGroup-450-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-450-1
05:24:04.868 [nioEventLoopGroup-436-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-1
05:24:04.868 [nioEventLoopGroup-436-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-7
05:24:04.868 [nioEventLoopGroup-436-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-12
05:24:04.868 [nioEventLoopGroup-436-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-11
05:24:04.868 [nioEventLoopGroup-436-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-8
05:24:04.868 [nioEventLoopGroup-436-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-2
05:24:04.868 [nioEventLoopGroup-436-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-9
05:24:04.868 [nioEventLoopGroup-436-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-13
05:24:04.868 [nioEventLoopGroup-436-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd9bdfee4, /127.0.0.1:54864 :> /127.0.0.1:46775] INACTIVE
05:24:04.868 [nioEventLoopGroup-436-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-5
05:24:04.868 [nioEventLoopGroup-436-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-3
05:24:04.868 [nioEventLoopGroup-436-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd9bdfee4, /127.0.0.1:54864 :> /127.0.0.1:46775] UNREGISTERED
05:24:04.868 [nioEventLoopGroup-436-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-4
05:24:04.869 [nioEventLoopGroup-436-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-10
05:24:04.869 [nioEventLoopGroup-436-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-6
05:24:04.981 [nioEventLoopGroup-420-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3927f50b, /127.0.0.1:54264 :> /127.0.0.1:34147] FLUSH
05:24:04.981 [nioEventLoopGroup-420-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3927f50b, /127.0.0.1:54264 :> /127.0.0.1:34147] INACTIVE
05:24:04.981 [nioEventLoopGroup-420-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3927f50b, /127.0.0.1:54264 :> /127.0.0.1:34147] UNREGISTERED
05:24:04.981 [nioEventLoopGroup-420-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-16
05:24:05.055 [nioEventLoopGroup-404-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-14
05:24:05.220 [MockServer thread for port: 34137] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 34137
05:24:05.221 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:05.222 [nioEventLoopGroup-452-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0c00b42, /127.0.0.1:41040 => /127.0.0.1:34137] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34137
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:05.222 [nioEventLoopGroup-452-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:05.223 [nioEventLoopGroup-452-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0c00b42, /127.0.0.1:41040 => /127.0.0.1:34137] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:05.223 [nioEventLoopGroup-452-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0c00b42, /127.0.0.1:41040 => /127.0.0.1:34137] FLUSH
05:24:05.223 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:05.223 [nioEventLoopGroup-452-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0c00b42, /127.0.0.1:41040 => /127.0.0.1:34137] FLUSH
05:24:05.223 [nioEventLoopGroup-453-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-453-1
05:24:05.223 [nioEventLoopGroup-452-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0c00b42, /127.0.0.1:41040 :> /127.0.0.1:34137] INACTIVE
05:24:05.223 [nioEventLoopGroup-452-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0c00b42, /127.0.0.1:41040 :> /127.0.0.1:34137] UNREGISTERED
05:24:05.223 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:05.225 [nioEventLoopGroup-452-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x92482d19, /127.0.0.1:41042 => /127.0.0.1:34137] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34137
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:05.225 [nioEventLoopGroup-452-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
05:24:05.225 [nioEventLoopGroup-452-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x92482d19, /127.0.0.1:41042 => /127.0.0.1:34137] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:05.225 [nioEventLoopGroup-452-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x92482d19, /127.0.0.1:41042 => /127.0.0.1:34137] FLUSH
05:24:05.225 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:05.225 [nioEventLoopGroup-452-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x92482d19, /127.0.0.1:41042 => /127.0.0.1:34137] FLUSH
05:24:05.225 [nioEventLoopGroup-452-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x92482d19, /127.0.0.1:41042 :> /127.0.0.1:34137] INACTIVE
05:24:05.225 [nioEventLoopGroup-454-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-454-1
05:24:05.225 [nioEventLoopGroup-452-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x92482d19, /127.0.0.1:41042 :> /127.0.0.1:34137] UNREGISTERED
05:24:05.226 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:05.227 [nioEventLoopGroup-452-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb63c1d37, /127.0.0.1:41044 => /127.0.0.1:34137] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34137
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:05.227 [nioEventLoopGroup-452-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
05:24:05.227 [nioEventLoopGroup-452-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb63c1d37, /127.0.0.1:41044 => /127.0.0.1:34137] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:05.227 [nioEventLoopGroup-452-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb63c1d37, /127.0.0.1:41044 => /127.0.0.1:34137] FLUSH
05:24:05.228 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:05.228 [nioEventLoopGroup-452-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb63c1d37, /127.0.0.1:41044 => /127.0.0.1:34137] FLUSH
05:24:05.228 [nioEventLoopGroup-455-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-455-1
05:24:05.228 [nioEventLoopGroup-452-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb63c1d37, /127.0.0.1:41044 :> /127.0.0.1:34137] INACTIVE
05:24:05.228 [nioEventLoopGroup-452-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb63c1d37, /127.0.0.1:41044 :> /127.0.0.1:34137] UNREGISTERED
05:24:05.228 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:05.229 [nioEventLoopGroup-452-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x76135f7a, /127.0.0.1:41046 => /127.0.0.1:34137] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34137
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:05.230 [nioEventLoopGroup-452-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:05.230 [nioEventLoopGroup-452-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x76135f7a, /127.0.0.1:41046 => /127.0.0.1:34137] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:05.230 [nioEventLoopGroup-452-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x76135f7a, /127.0.0.1:41046 => /127.0.0.1:34137] FLUSH
05:24:05.230 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:05.230 [nioEventLoopGroup-452-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x76135f7a, /127.0.0.1:41046 => /127.0.0.1:34137] FLUSH
05:24:05.230 [nioEventLoopGroup-452-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x76135f7a, /127.0.0.1:41046 :> /127.0.0.1:34137] INACTIVE
05:24:05.230 [nioEventLoopGroup-452-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x76135f7a, /127.0.0.1:41046 :> /127.0.0.1:34137] UNREGISTERED
05:24:05.230 [nioEventLoopGroup-456-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-456-1
05:24:05.231 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:05.232 [nioEventLoopGroup-452-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x97b318de, /127.0.0.1:41048 => /127.0.0.1:34137] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34137
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
05:24:05.232 [nioEventLoopGroup-452-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
05:24:05.232 [nioEventLoopGroup-452-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x97b318de, /127.0.0.1:41048 => /127.0.0.1:34137] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:05.232 [nioEventLoopGroup-452-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x97b318de, /127.0.0.1:41048 => /127.0.0.1:34137] FLUSH
05:24:05.232 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:05.232 [nioEventLoopGroup-452-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x97b318de, /127.0.0.1:41048 => /127.0.0.1:34137] FLUSH
05:24:05.232 [nioEventLoopGroup-452-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x97b318de, /127.0.0.1:41048 :> /127.0.0.1:34137] INACTIVE
05:24:05.232 [nioEventLoopGroup-452-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x97b318de, /127.0.0.1:41048 :> /127.0.0.1:34137] UNREGISTERED
05:24:05.232 [nioEventLoopGroup-457-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-457-1
05:24:05.233 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:05.234 [nioEventLoopGroup-452-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7bf833bb, /127.0.0.1:41050 => /127.0.0.1:34137] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34137
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
05:24:05.235 [nioEventLoopGroup-452-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
05:24:05.235 [nioEventLoopGroup-452-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7bf833bb, /127.0.0.1:41050 => /127.0.0.1:34137] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:05.235 [nioEventLoopGroup-452-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7bf833bb, /127.0.0.1:41050 => /127.0.0.1:34137] FLUSH
05:24:05.235 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:05.235 [nioEventLoopGroup-452-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7bf833bb, /127.0.0.1:41050 => /127.0.0.1:34137] FLUSH
05:24:05.235 [nioEventLoopGroup-452-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7bf833bb, /127.0.0.1:41050 :> /127.0.0.1:34137] INACTIVE
05:24:05.235 [nioEventLoopGroup-458-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-458-1
05:24:05.235 [nioEventLoopGroup-452-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7bf833bb, /127.0.0.1:41050 :> /127.0.0.1:34137] UNREGISTERED
05:24:05.236 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:05.237 [nioEventLoopGroup-452-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1386c48d, /127.0.0.1:41052 => /127.0.0.1:34137] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34137
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:05.237 [nioEventLoopGroup-452-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
05:24:05.237 [nioEventLoopGroup-452-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1386c48d, /127.0.0.1:41052 => /127.0.0.1:34137] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:05.237 [nioEventLoopGroup-452-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1386c48d, /127.0.0.1:41052 => /127.0.0.1:34137] FLUSH
05:24:05.237 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:05.237 [nioEventLoopGroup-452-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1386c48d, /127.0.0.1:41052 => /127.0.0.1:34137] FLUSH
05:24:05.237 [nioEventLoopGroup-459-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-459-1
05:24:05.237 [nioEventLoopGroup-452-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1386c48d, /127.0.0.1:41052 :> /127.0.0.1:34137] INACTIVE
05:24:05.237 [nioEventLoopGroup-452-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1386c48d, /127.0.0.1:41052 :> /127.0.0.1:34137] UNREGISTERED
05:24:05.238 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:05.239 [nioEventLoopGroup-452-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ee5ed9a, /127.0.0.1:41054 => /127.0.0.1:34137] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34137
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:05.239 [nioEventLoopGroup-452-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
05:24:05.239 [nioEventLoopGroup-452-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ee5ed9a, /127.0.0.1:41054 => /127.0.0.1:34137] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:05.239 [nioEventLoopGroup-452-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ee5ed9a, /127.0.0.1:41054 => /127.0.0.1:34137] FLUSH
05:24:05.240 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:05.240 [nioEventLoopGroup-452-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ee5ed9a, /127.0.0.1:41054 => /127.0.0.1:34137] FLUSH
05:24:05.240 [nioEventLoopGroup-452-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ee5ed9a, /127.0.0.1:41054 :> /127.0.0.1:34137] INACTIVE
05:24:05.240 [nioEventLoopGroup-452-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ee5ed9a, /127.0.0.1:41054 :> /127.0.0.1:34137] UNREGISTERED
05:24:05.240 [nioEventLoopGroup-460-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-460-1
05:24:05.240 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:05.241 [nioEventLoopGroup-452-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8950ea2f, /127.0.0.1:41056 => /127.0.0.1:34137] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34137
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:05.242 [nioEventLoopGroup-452-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
05:24:05.242 [nioEventLoopGroup-452-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8950ea2f, /127.0.0.1:41056 => /127.0.0.1:34137] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:05.242 [nioEventLoopGroup-452-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8950ea2f, /127.0.0.1:41056 => /127.0.0.1:34137] FLUSH
05:24:05.242 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:05.242 [nioEventLoopGroup-452-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8950ea2f, /127.0.0.1:41056 => /127.0.0.1:34137] FLUSH
05:24:05.242 [nioEventLoopGroup-452-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8950ea2f, /127.0.0.1:41056 :> /127.0.0.1:34137] INACTIVE
05:24:05.242 [nioEventLoopGroup-461-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-461-1
05:24:05.242 [nioEventLoopGroup-452-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8950ea2f, /127.0.0.1:41056 :> /127.0.0.1:34137] UNREGISTERED
05:24:05.243 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:05.244 [nioEventLoopGroup-452-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5c0fe54, /127.0.0.1:41058 => /127.0.0.1:34137] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34137
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:05.244 [nioEventLoopGroup-452-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
05:24:05.244 [nioEventLoopGroup-452-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5c0fe54, /127.0.0.1:41058 => /127.0.0.1:34137] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:05.244 [nioEventLoopGroup-452-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5c0fe54, /127.0.0.1:41058 => /127.0.0.1:34137] FLUSH
05:24:05.244 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:05.244 [nioEventLoopGroup-452-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5c0fe54, /127.0.0.1:41058 => /127.0.0.1:34137] FLUSH
05:24:05.244 [nioEventLoopGroup-452-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5c0fe54, /127.0.0.1:41058 :> /127.0.0.1:34137] INACTIVE
05:24:05.244 [nioEventLoopGroup-462-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-462-1
05:24:05.244 [nioEventLoopGroup-452-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5c0fe54, /127.0.0.1:41058 :> /127.0.0.1:34137] UNREGISTERED
05:24:05.245 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:05.246 [nioEventLoopGroup-452-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3f99d623, /127.0.0.1:41060 => /127.0.0.1:34137] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34137
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:05.246 [nioEventLoopGroup-452-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
05:24:05.246 [nioEventLoopGroup-452-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3f99d623, /127.0.0.1:41060 => /127.0.0.1:34137] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:05.246 [nioEventLoopGroup-452-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3f99d623, /127.0.0.1:41060 => /127.0.0.1:34137] FLUSH
05:24:05.247 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:05.247 [nioEventLoopGroup-452-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3f99d623, /127.0.0.1:41060 => /127.0.0.1:34137] FLUSH
05:24:05.247 [nioEventLoopGroup-452-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3f99d623, /127.0.0.1:41060 :> /127.0.0.1:34137] INACTIVE
05:24:05.247 [nioEventLoopGroup-463-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-463-1
05:24:05.247 [nioEventLoopGroup-452-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3f99d623, /127.0.0.1:41060 :> /127.0.0.1:34137] UNREGISTERED
05:24:05.247 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:05.248 [nioEventLoopGroup-452-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x51b1f826, /127.0.0.1:41062 => /127.0.0.1:34137] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34137
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:05.249 [nioEventLoopGroup-452-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
05:24:05.249 [nioEventLoopGroup-452-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x51b1f826, /127.0.0.1:41062 => /127.0.0.1:34137] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:05.249 [nioEventLoopGroup-452-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x51b1f826, /127.0.0.1:41062 => /127.0.0.1:34137] FLUSH
05:24:05.249 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:05.249 [nioEventLoopGroup-452-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x51b1f826, /127.0.0.1:41062 => /127.0.0.1:34137] FLUSH
05:24:05.250 [nioEventLoopGroup-452-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x51b1f826, /127.0.0.1:41062 :> /127.0.0.1:34137] INACTIVE
05:24:05.250 [nioEventLoopGroup-452-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x51b1f826, /127.0.0.1:41062 :> /127.0.0.1:34137] UNREGISTERED
05:24:05.250 [nioEventLoopGroup-464-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-464-1
05:24:05.250 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:05.252 [nioEventLoopGroup-452-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x793d6065, /127.0.0.1:41064 => /127.0.0.1:34137] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34137
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:05.252 [nioEventLoopGroup-452-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:05.252 [nioEventLoopGroup-452-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x793d6065, /127.0.0.1:41064 => /127.0.0.1:34137] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:05.252 [nioEventLoopGroup-452-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x793d6065, /127.0.0.1:41064 => /127.0.0.1:34137] FLUSH
05:24:05.252 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:05.253 [nioEventLoopGroup-452-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x793d6065, /127.0.0.1:41064 => /127.0.0.1:34137] FLUSH
05:24:05.253 [nioEventLoopGroup-452-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x793d6065, /127.0.0.1:41064 :> /127.0.0.1:34137] INACTIVE
05:24:05.253 [nioEventLoopGroup-452-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x793d6065, /127.0.0.1:41064 :> /127.0.0.1:34137] UNREGISTERED
05:24:05.253 [nioEventLoopGroup-465-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-465-1
05:24:05.258 [nioEventLoopGroup-452-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb471b610, /127.0.0.1:41066 => /127.0.0.1:34137] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /xml HTTP/1.1
Host: localhost:34137
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_102)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
05:24:05.258 [nioEventLoopGroup-452-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34137" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:05.258 [nioEventLoopGroup-452-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34137" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:05.258 [nioEventLoopGroup-452-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34137" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:24:05.258 [nioEventLoopGroup-452-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34137" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:05.258 [nioEventLoopGroup-452-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34137" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/xml"
}
05:24:05.259 [nioEventLoopGroup-452-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
for request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34137" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:24:05.259 [nioEventLoopGroup-452-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb471b610, /127.0.0.1:41066 => /127.0.0.1:34137] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 95, cap: 95/95))
HTTP/1.1 200 OK
Content-Type: text/xml
Content-Length: 95
Connection: keep-alive, 95B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 3f 78 6d 6c 20 76 65 72 73 69 6f 6e 3d 22 31 |<?xml version="1|
|00000010| 2e 30 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c |.0"?><root><chil|
|00000020| 64 3e 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f |d><elt name='foo|
|00000030| 27 20 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e |' /><text>Nothin|
|00000040| 67 20 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e |g special</text>|
|00000050| 3c 2f 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e |</child></root> |
+--------+-------------------------------------------------+----------------+
05:24:05.259 [nioEventLoopGroup-452-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb471b610, /127.0.0.1:41066 => /127.0.0.1:34137] FLUSH
05:24:05.283 [nioEventLoopGroup-452-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xadb4e3eb, /127.0.0.1:41068 => /127.0.0.1:34137] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /xml HTTP/1.1
Host: localhost:34137
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_102)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
05:24:05.283 [nioEventLoopGroup-452-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34137" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:05.283 [nioEventLoopGroup-452-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34137" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:05.283 [nioEventLoopGroup-452-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34137" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:24:05.284 [nioEventLoopGroup-452-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34137" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:05.284 [nioEventLoopGroup-452-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34137" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/xml"
}
05:24:05.284 [nioEventLoopGroup-452-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
for request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34137" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:24:05.284 [nioEventLoopGroup-452-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xadb4e3eb, /127.0.0.1:41068 => /127.0.0.1:34137] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 95, cap: 95/95))
HTTP/1.1 200 OK
Content-Type: text/xml
Content-Length: 95
Connection: keep-alive, 95B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 3f 78 6d 6c 20 76 65 72 73 69 6f 6e 3d 22 31 |<?xml version="1|
|00000010| 2e 30 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c |.0"?><root><chil|
|00000020| 64 3e 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f |d><elt name='foo|
|00000030| 27 20 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e |' /><text>Nothin|
|00000040| 67 20 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e |g special</text>|
|00000050| 3c 2f 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e |</child></root> |
+--------+-------------------------------------------------+----------------+
05:24:05.284 [nioEventLoopGroup-452-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xadb4e3eb, /127.0.0.1:41068 => /127.0.0.1:34137] FLUSH
05:24:05.287 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
05:24:05.288 [nioEventLoopGroup-452-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcfc9bbdb, /127.0.0.1:41070 => /127.0.0.1:34137] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:34137
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
05:24:05.288 [nioEventLoopGroup-452-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcfc9bbdb, /127.0.0.1:41070 => /127.0.0.1:34137] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:05.288 [nioEventLoopGroup-452-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcfc9bbdb, /127.0.0.1:41070 => /127.0.0.1:34137] FLUSH
05:24:05.289 [nioEventLoopGroup-452-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcfc9bbdb, /127.0.0.1:41070 => /127.0.0.1:34137] CLOSE()
05:24:05.289 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:05.289 [nioEventLoopGroup-466-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-466-1
05:24:05.290 [nioEventLoopGroup-452-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-1
05:24:05.290 [nioEventLoopGroup-452-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-2
05:24:05.290 [nioEventLoopGroup-452-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-3
05:24:05.290 [nioEventLoopGroup-452-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-4
05:24:05.290 [nioEventLoopGroup-452-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-7
05:24:05.290 [nioEventLoopGroup-452-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-9
05:24:05.290 [nioEventLoopGroup-452-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-6
05:24:05.290 [nioEventLoopGroup-452-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-8
05:24:05.290 [nioEventLoopGroup-452-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-5
05:24:05.290 [nioEventLoopGroup-452-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-10
05:24:05.290 [nioEventLoopGroup-452-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-11
05:24:05.290 [nioEventLoopGroup-452-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-12
05:24:05.290 [nioEventLoopGroup-452-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-13
05:24:05.290 [nioEventLoopGroup-452-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb471b610, /127.0.0.1:41066 :> /127.0.0.1:34137] INACTIVE
05:24:05.290 [nioEventLoopGroup-452-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xadb4e3eb, /127.0.0.1:41068 :> /127.0.0.1:34137] INACTIVE
05:24:05.290 [nioEventLoopGroup-452-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb471b610, /127.0.0.1:41066 :> /127.0.0.1:34137] UNREGISTERED
05:24:05.290 [nioEventLoopGroup-452-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xadb4e3eb, /127.0.0.1:41068 :> /127.0.0.1:34137] UNREGISTERED
05:24:05.368 [nioEventLoopGroup-436-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf75d50f6, /127.0.0.1:54866 :> /127.0.0.1:46775] FLUSH
05:24:05.369 [nioEventLoopGroup-436-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf75d50f6, /127.0.0.1:54866 :> /127.0.0.1:46775] INACTIVE
05:24:05.369 [nioEventLoopGroup-436-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf75d50f6, /127.0.0.1:54866 :> /127.0.0.1:46775] UNREGISTERED
05:24:05.369 [nioEventLoopGroup-436-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-15
05:24:05.482 [nioEventLoopGroup-420-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-15
05:24:05.482 [nioEventLoopGroup-420-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-14
05:24:05.642 [MockServer thread for port: 36245] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 36245
05:24:05.642 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:05.643 [nioEventLoopGroup-468-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5d201493, /127.0.0.1:47844 => /127.0.0.1:36245] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36245
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:05.644 [nioEventLoopGroup-468-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:05.644 [nioEventLoopGroup-468-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5d201493, /127.0.0.1:47844 => /127.0.0.1:36245] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:05.644 [nioEventLoopGroup-468-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5d201493, /127.0.0.1:47844 => /127.0.0.1:36245] FLUSH
05:24:05.644 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:05.644 [nioEventLoopGroup-468-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5d201493, /127.0.0.1:47844 => /127.0.0.1:36245] FLUSH
05:24:05.644 [nioEventLoopGroup-468-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5d201493, /127.0.0.1:47844 :> /127.0.0.1:36245] INACTIVE
05:24:05.644 [nioEventLoopGroup-468-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5d201493, /127.0.0.1:47844 :> /127.0.0.1:36245] UNREGISTERED
05:24:05.644 [nioEventLoopGroup-469-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-469-1
05:24:05.645 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:05.646 [nioEventLoopGroup-468-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1479c470, /127.0.0.1:47846 => /127.0.0.1:36245] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36245
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:05.646 [nioEventLoopGroup-468-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
05:24:05.646 [nioEventLoopGroup-468-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1479c470, /127.0.0.1:47846 => /127.0.0.1:36245] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:05.647 [nioEventLoopGroup-468-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1479c470, /127.0.0.1:47846 => /127.0.0.1:36245] FLUSH
05:24:05.647 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:05.647 [nioEventLoopGroup-468-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1479c470, /127.0.0.1:47846 => /127.0.0.1:36245] FLUSH
05:24:05.647 [nioEventLoopGroup-470-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-470-1
05:24:05.647 [nioEventLoopGroup-468-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1479c470, /127.0.0.1:47846 :> /127.0.0.1:36245] INACTIVE
05:24:05.647 [nioEventLoopGroup-468-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1479c470, /127.0.0.1:47846 :> /127.0.0.1:36245] UNREGISTERED
05:24:05.647 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:05.650 [nioEventLoopGroup-468-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ac0a8c7, /127.0.0.1:47848 => /127.0.0.1:36245] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36245
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:05.651 [nioEventLoopGroup-468-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
05:24:05.651 [nioEventLoopGroup-468-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ac0a8c7, /127.0.0.1:47848 => /127.0.0.1:36245] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:05.651 [nioEventLoopGroup-468-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ac0a8c7, /127.0.0.1:47848 => /127.0.0.1:36245] FLUSH
05:24:05.651 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:05.651 [nioEventLoopGroup-468-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ac0a8c7, /127.0.0.1:47848 => /127.0.0.1:36245] FLUSH
05:24:05.651 [nioEventLoopGroup-468-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ac0a8c7, /127.0.0.1:47848 :> /127.0.0.1:36245] INACTIVE
05:24:05.651 [nioEventLoopGroup-468-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ac0a8c7, /127.0.0.1:47848 :> /127.0.0.1:36245] UNREGISTERED
05:24:05.651 [nioEventLoopGroup-471-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-471-1
05:24:05.652 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:05.654 [nioEventLoopGroup-468-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfc9ef646, /127.0.0.1:47850 => /127.0.0.1:36245] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36245
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:05.654 [nioEventLoopGroup-468-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:05.655 [nioEventLoopGroup-468-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfc9ef646, /127.0.0.1:47850 => /127.0.0.1:36245] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:05.655 [nioEventLoopGroup-468-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfc9ef646, /127.0.0.1:47850 => /127.0.0.1:36245] FLUSH
05:24:05.655 [nioEventLoopGroup-468-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfc9ef646, /127.0.0.1:47850 => /127.0.0.1:36245] FLUSH
05:24:05.655 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:05.655 [nioEventLoopGroup-468-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfc9ef646, /127.0.0.1:47850 :> /127.0.0.1:36245] INACTIVE
05:24:05.655 [nioEventLoopGroup-468-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfc9ef646, /127.0.0.1:47850 :> /127.0.0.1:36245] UNREGISTERED
05:24:05.655 [nioEventLoopGroup-472-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-472-1
05:24:05.656 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:05.657 [nioEventLoopGroup-468-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c84a5e4, /127.0.0.1:47852 => /127.0.0.1:36245] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36245
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
05:24:05.658 [nioEventLoopGroup-468-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
05:24:05.658 [nioEventLoopGroup-468-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c84a5e4, /127.0.0.1:47852 => /127.0.0.1:36245] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:05.658 [nioEventLoopGroup-468-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c84a5e4, /127.0.0.1:47852 => /127.0.0.1:36245] FLUSH
05:24:05.658 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:05.659 [nioEventLoopGroup-468-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c84a5e4, /127.0.0.1:47852 => /127.0.0.1:36245] FLUSH
05:24:05.659 [nioEventLoopGroup-468-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c84a5e4, /127.0.0.1:47852 :> /127.0.0.1:36245] INACTIVE
05:24:05.659 [nioEventLoopGroup-468-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c84a5e4, /127.0.0.1:47852 :> /127.0.0.1:36245] UNREGISTERED
05:24:05.659 [nioEventLoopGroup-473-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-473-1
05:24:05.660 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:05.661 [nioEventLoopGroup-468-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x50b9b999, /127.0.0.1:47854 => /127.0.0.1:36245] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36245
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
05:24:05.662 [nioEventLoopGroup-468-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
05:24:05.662 [nioEventLoopGroup-468-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x50b9b999, /127.0.0.1:47854 => /127.0.0.1:36245] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:05.662 [nioEventLoopGroup-468-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x50b9b999, /127.0.0.1:47854 => /127.0.0.1:36245] FLUSH
05:24:05.663 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:05.663 [nioEventLoopGroup-468-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x50b9b999, /127.0.0.1:47854 => /127.0.0.1:36245] FLUSH
05:24:05.663 [nioEventLoopGroup-468-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x50b9b999, /127.0.0.1:47854 :> /127.0.0.1:36245] INACTIVE
05:24:05.663 [nioEventLoopGroup-468-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x50b9b999, /127.0.0.1:47854 :> /127.0.0.1:36245] UNREGISTERED
05:24:05.663 [nioEventLoopGroup-474-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-474-1
05:24:05.663 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:05.666 [nioEventLoopGroup-468-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x90d75eab, /127.0.0.1:47856 => /127.0.0.1:36245] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36245
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:05.666 [nioEventLoopGroup-468-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
05:24:05.666 [nioEventLoopGroup-468-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x90d75eab, /127.0.0.1:47856 => /127.0.0.1:36245] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:05.667 [nioEventLoopGroup-468-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x90d75eab, /127.0.0.1:47856 => /127.0.0.1:36245] FLUSH
05:24:05.667 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:05.667 [nioEventLoopGroup-468-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x90d75eab, /127.0.0.1:47856 => /127.0.0.1:36245] FLUSH
05:24:05.667 [nioEventLoopGroup-468-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x90d75eab, /127.0.0.1:47856 :> /127.0.0.1:36245] INACTIVE
05:24:05.667 [nioEventLoopGroup-468-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x90d75eab, /127.0.0.1:47856 :> /127.0.0.1:36245] UNREGISTERED
05:24:05.667 [nioEventLoopGroup-475-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-475-1
05:24:05.670 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:05.673 [nioEventLoopGroup-468-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb7fa1763, /127.0.0.1:47858 => /127.0.0.1:36245] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36245
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:05.673 [nioEventLoopGroup-468-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
05:24:05.673 [nioEventLoopGroup-468-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb7fa1763, /127.0.0.1:47858 => /127.0.0.1:36245] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:05.673 [nioEventLoopGroup-468-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb7fa1763, /127.0.0.1:47858 => /127.0.0.1:36245] FLUSH
05:24:05.673 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:05.673 [nioEventLoopGroup-468-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb7fa1763, /127.0.0.1:47858 => /127.0.0.1:36245] FLUSH
05:24:05.673 [nioEventLoopGroup-468-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb7fa1763, /127.0.0.1:47858 :> /127.0.0.1:36245] INACTIVE
05:24:05.673 [nioEventLoopGroup-468-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb7fa1763, /127.0.0.1:47858 :> /127.0.0.1:36245] UNREGISTERED
05:24:05.673 [nioEventLoopGroup-476-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-476-1
05:24:05.674 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:05.676 [nioEventLoopGroup-468-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2b01df30, /127.0.0.1:47860 => /127.0.0.1:36245] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36245
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:05.676 [nioEventLoopGroup-468-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
05:24:05.676 [nioEventLoopGroup-468-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2b01df30, /127.0.0.1:47860 => /127.0.0.1:36245] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:05.676 [nioEventLoopGroup-468-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2b01df30, /127.0.0.1:47860 => /127.0.0.1:36245] FLUSH
05:24:05.676 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:05.677 [nioEventLoopGroup-468-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2b01df30, /127.0.0.1:47860 => /127.0.0.1:36245] FLUSH
05:24:05.677 [nioEventLoopGroup-468-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2b01df30, /127.0.0.1:47860 :> /127.0.0.1:36245] INACTIVE
05:24:05.677 [nioEventLoopGroup-468-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2b01df30, /127.0.0.1:47860 :> /127.0.0.1:36245] UNREGISTERED
05:24:05.677 [nioEventLoopGroup-477-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-477-1
05:24:05.677 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:05.679 [nioEventLoopGroup-468-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x81364776, /127.0.0.1:47862 => /127.0.0.1:36245] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36245
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:05.679 [nioEventLoopGroup-468-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
05:24:05.679 [nioEventLoopGroup-468-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x81364776, /127.0.0.1:47862 => /127.0.0.1:36245] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:05.679 [nioEventLoopGroup-468-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x81364776, /127.0.0.1:47862 => /127.0.0.1:36245] FLUSH
05:24:05.680 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:05.680 [nioEventLoopGroup-468-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x81364776, /127.0.0.1:47862 => /127.0.0.1:36245] FLUSH
05:24:05.680 [nioEventLoopGroup-468-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x81364776, /127.0.0.1:47862 :> /127.0.0.1:36245] INACTIVE
05:24:05.680 [nioEventLoopGroup-468-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x81364776, /127.0.0.1:47862 :> /127.0.0.1:36245] UNREGISTERED
05:24:05.680 [nioEventLoopGroup-478-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-478-1
05:24:05.680 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:05.682 [nioEventLoopGroup-468-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8782a8ac, /127.0.0.1:47864 => /127.0.0.1:36245] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36245
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:05.682 [nioEventLoopGroup-468-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
05:24:05.683 [nioEventLoopGroup-468-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8782a8ac, /127.0.0.1:47864 => /127.0.0.1:36245] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:05.683 [nioEventLoopGroup-468-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8782a8ac, /127.0.0.1:47864 => /127.0.0.1:36245] FLUSH
05:24:05.683 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:05.683 [nioEventLoopGroup-468-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8782a8ac, /127.0.0.1:47864 => /127.0.0.1:36245] FLUSH
05:24:05.683 [nioEventLoopGroup-468-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8782a8ac, /127.0.0.1:47864 :> /127.0.0.1:36245] INACTIVE
05:24:05.683 [nioEventLoopGroup-468-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8782a8ac, /127.0.0.1:47864 :> /127.0.0.1:36245] UNREGISTERED
05:24:05.683 [nioEventLoopGroup-479-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-479-1
05:24:05.684 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:05.685 [nioEventLoopGroup-468-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc7bd0269, /127.0.0.1:47866 => /127.0.0.1:36245] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36245
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:05.686 [nioEventLoopGroup-468-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
05:24:05.686 [nioEventLoopGroup-468-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc7bd0269, /127.0.0.1:47866 => /127.0.0.1:36245] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:05.686 [nioEventLoopGroup-468-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc7bd0269, /127.0.0.1:47866 => /127.0.0.1:36245] FLUSH
05:24:05.686 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:05.686 [nioEventLoopGroup-468-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc7bd0269, /127.0.0.1:47866 => /127.0.0.1:36245] FLUSH
05:24:05.686 [nioEventLoopGroup-468-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc7bd0269, /127.0.0.1:47866 :> /127.0.0.1:36245] INACTIVE
05:24:05.686 [nioEventLoopGroup-468-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc7bd0269, /127.0.0.1:47866 :> /127.0.0.1:36245] UNREGISTERED
05:24:05.686 [nioEventLoopGroup-480-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-480-1
05:24:05.687 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:05.689 [nioEventLoopGroup-468-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc904d691, /127.0.0.1:47868 => /127.0.0.1:36245] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36245
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:05.689 [nioEventLoopGroup-468-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:05.690 [nioEventLoopGroup-468-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc904d691, /127.0.0.1:47868 => /127.0.0.1:36245] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:05.690 [nioEventLoopGroup-468-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc904d691, /127.0.0.1:47868 => /127.0.0.1:36245] FLUSH
05:24:05.690 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:05.690 [nioEventLoopGroup-468-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc904d691, /127.0.0.1:47868 => /127.0.0.1:36245] FLUSH
05:24:05.690 [nioEventLoopGroup-468-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc904d691, /127.0.0.1:47868 :> /127.0.0.1:36245] INACTIVE
05:24:05.690 [nioEventLoopGroup-468-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc904d691, /127.0.0.1:47868 :> /127.0.0.1:36245] UNREGISTERED
05:24:05.690 [nioEventLoopGroup-481-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-481-1
05:24:05.692 [nioEventLoopGroup-468-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x73a67ecc, /127.0.0.1:47870 => /127.0.0.1:36245] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /xml HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_102
Host: localhost:36245
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
05:24:05.692 [nioEventLoopGroup-468-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36245" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:05.692 [nioEventLoopGroup-468-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36245" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:05.693 [nioEventLoopGroup-468-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36245" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:24:05.693 [nioEventLoopGroup-468-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36245" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:05.693 [nioEventLoopGroup-468-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36245" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/xml"
}
05:24:05.693 [nioEventLoopGroup-468-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
for request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36245" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:24:05.693 [nioEventLoopGroup-468-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x73a67ecc, /127.0.0.1:47870 => /127.0.0.1:36245] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 95, cap: 95/95))
HTTP/1.1 200 OK
Content-Type: text/xml
Content-Length: 95
Connection: keep-alive, 95B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 3f 78 6d 6c 20 76 65 72 73 69 6f 6e 3d 22 31 |<?xml version="1|
|00000010| 2e 30 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c |.0"?><root><chil|
|00000020| 64 3e 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f |d><elt name='foo|
|00000030| 27 20 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e |' /><text>Nothin|
|00000040| 67 20 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e |g special</text>|
|00000050| 3c 2f 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e |</child></root> |
+--------+-------------------------------------------------+----------------+
05:24:05.694 [nioEventLoopGroup-468-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x73a67ecc, /127.0.0.1:47870 => /127.0.0.1:36245] FLUSH
05:24:05.697 [nioEventLoopGroup-468-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x73a67ecc, /127.0.0.1:47870 => /127.0.0.1:36245] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /xml HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_102
Host: localhost:36245
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
05:24:05.697 [nioEventLoopGroup-468-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36245" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:05.697 [nioEventLoopGroup-468-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36245" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:05.698 [nioEventLoopGroup-468-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36245" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:24:05.698 [nioEventLoopGroup-468-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36245" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:05.698 [nioEventLoopGroup-468-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36245" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/xml"
}
05:24:05.698 [nioEventLoopGroup-468-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
for request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:36245" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:24:05.698 [nioEventLoopGroup-468-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x73a67ecc, /127.0.0.1:47870 => /127.0.0.1:36245] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 95, cap: 95/95))
HTTP/1.1 200 OK
Content-Type: text/xml
Content-Length: 95
Connection: keep-alive, 95B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 3f 78 6d 6c 20 76 65 72 73 69 6f 6e 3d 22 31 |<?xml version="1|
|00000010| 2e 30 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c |.0"?><root><chil|
|00000020| 64 3e 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f |d><elt name='foo|
|00000030| 27 20 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e |' /><text>Nothin|
|00000040| 67 20 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e |g special</text>|
|00000050| 3c 2f 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e |</child></root> |
+--------+-------------------------------------------------+----------------+
05:24:05.698 [nioEventLoopGroup-468-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x73a67ecc, /127.0.0.1:47870 => /127.0.0.1:36245] FLUSH
05:24:05.701 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
05:24:05.702 [nioEventLoopGroup-468-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd6fc00de, /127.0.0.1:47872 => /127.0.0.1:36245] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:36245
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
05:24:05.702 [nioEventLoopGroup-468-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd6fc00de, /127.0.0.1:47872 => /127.0.0.1:36245] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:05.702 [nioEventLoopGroup-468-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd6fc00de, /127.0.0.1:47872 => /127.0.0.1:36245] FLUSH
05:24:05.702 [nioEventLoopGroup-468-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd6fc00de, /127.0.0.1:47872 => /127.0.0.1:36245] CLOSE()
05:24:05.703 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:05.703 [nioEventLoopGroup-482-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-482-1
05:24:05.703 [nioEventLoopGroup-468-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-2
05:24:05.703 [nioEventLoopGroup-468-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-3
05:24:05.703 [nioEventLoopGroup-468-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-4
05:24:05.703 [nioEventLoopGroup-468-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-5
05:24:05.703 [nioEventLoopGroup-468-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-7
05:24:05.703 [nioEventLoopGroup-468-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-1
05:24:05.703 [nioEventLoopGroup-468-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-8
05:24:05.703 [nioEventLoopGroup-468-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-11
05:24:05.703 [nioEventLoopGroup-468-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-6
05:24:05.703 [nioEventLoopGroup-468-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-13
05:24:05.703 [nioEventLoopGroup-468-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-12
05:24:05.703 [nioEventLoopGroup-468-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-9
05:24:05.703 [nioEventLoopGroup-468-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-10
05:24:05.704 [nioEventLoopGroup-468-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x73a67ecc, /127.0.0.1:47870 :> /127.0.0.1:36245] INACTIVE
05:24:05.704 [nioEventLoopGroup-468-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x73a67ecc, /127.0.0.1:47870 :> /127.0.0.1:36245] UNREGISTERED
05:24:05.790 [nioEventLoopGroup-452-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcfc9bbdb, /127.0.0.1:41070 :> /127.0.0.1:34137] FLUSH
05:24:05.790 [nioEventLoopGroup-452-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcfc9bbdb, /127.0.0.1:41070 :> /127.0.0.1:34137] INACTIVE
05:24:05.790 [nioEventLoopGroup-452-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcfc9bbdb, /127.0.0.1:41070 :> /127.0.0.1:34137] UNREGISTERED
05:24:05.790 [nioEventLoopGroup-452-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-16
05:24:05.870 [nioEventLoopGroup-436-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-14
05:24:06.056 [MockServer thread for port: 46717] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 46717
05:24:06.056 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:06.057 [nioEventLoopGroup-484-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd411765c, /127.0.0.1:38484 => /127.0.0.1:46717] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46717
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:06.058 [nioEventLoopGroup-484-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:06.058 [nioEventLoopGroup-484-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd411765c, /127.0.0.1:38484 => /127.0.0.1:46717] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:06.058 [nioEventLoopGroup-484-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd411765c, /127.0.0.1:38484 => /127.0.0.1:46717] FLUSH
05:24:06.058 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:06.058 [nioEventLoopGroup-484-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd411765c, /127.0.0.1:38484 => /127.0.0.1:46717] FLUSH
05:24:06.058 [nioEventLoopGroup-484-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd411765c, /127.0.0.1:38484 :> /127.0.0.1:46717] INACTIVE
05:24:06.058 [nioEventLoopGroup-485-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-485-1
05:24:06.058 [nioEventLoopGroup-484-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd411765c, /127.0.0.1:38484 :> /127.0.0.1:46717] UNREGISTERED
05:24:06.059 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:06.063 [nioEventLoopGroup-484-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf88d321c, /127.0.0.1:38486 => /127.0.0.1:46717] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46717
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:06.064 [nioEventLoopGroup-484-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
05:24:06.064 [nioEventLoopGroup-484-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf88d321c, /127.0.0.1:38486 => /127.0.0.1:46717] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:06.064 [nioEventLoopGroup-484-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf88d321c, /127.0.0.1:38486 => /127.0.0.1:46717] FLUSH
05:24:06.064 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:06.064 [nioEventLoopGroup-484-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf88d321c, /127.0.0.1:38486 => /127.0.0.1:46717] FLUSH
05:24:06.064 [nioEventLoopGroup-484-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf88d321c, /127.0.0.1:38486 :> /127.0.0.1:46717] INACTIVE
05:24:06.064 [nioEventLoopGroup-484-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf88d321c, /127.0.0.1:38486 :> /127.0.0.1:46717] UNREGISTERED
05:24:06.064 [nioEventLoopGroup-486-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-486-1
05:24:06.091 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:06.093 [nioEventLoopGroup-484-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe15fc578, /127.0.0.1:38488 => /127.0.0.1:46717] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46717
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:06.093 [nioEventLoopGroup-484-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
05:24:06.094 [nioEventLoopGroup-484-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe15fc578, /127.0.0.1:38488 => /127.0.0.1:46717] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:06.094 [nioEventLoopGroup-484-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe15fc578, /127.0.0.1:38488 => /127.0.0.1:46717] FLUSH
05:24:06.094 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:06.094 [nioEventLoopGroup-484-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe15fc578, /127.0.0.1:38488 => /127.0.0.1:46717] FLUSH
05:24:06.094 [nioEventLoopGroup-487-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-487-1
05:24:06.094 [nioEventLoopGroup-484-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe15fc578, /127.0.0.1:38488 :> /127.0.0.1:46717] INACTIVE
05:24:06.094 [nioEventLoopGroup-484-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe15fc578, /127.0.0.1:38488 :> /127.0.0.1:46717] UNREGISTERED
05:24:06.094 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:06.096 [nioEventLoopGroup-484-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2d7f1a6d, /127.0.0.1:38490 => /127.0.0.1:46717] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46717
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:06.096 [nioEventLoopGroup-484-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:06.096 [nioEventLoopGroup-484-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2d7f1a6d, /127.0.0.1:38490 => /127.0.0.1:46717] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:06.096 [nioEventLoopGroup-484-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2d7f1a6d, /127.0.0.1:38490 => /127.0.0.1:46717] FLUSH
05:24:06.096 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:06.096 [nioEventLoopGroup-484-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2d7f1a6d, /127.0.0.1:38490 => /127.0.0.1:46717] FLUSH
05:24:06.096 [nioEventLoopGroup-484-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2d7f1a6d, /127.0.0.1:38490 :> /127.0.0.1:46717] INACTIVE
05:24:06.096 [nioEventLoopGroup-484-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2d7f1a6d, /127.0.0.1:38490 :> /127.0.0.1:46717] UNREGISTERED
05:24:06.097 [nioEventLoopGroup-488-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-488-1
05:24:06.097 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:06.098 [nioEventLoopGroup-484-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf4948f8a, /127.0.0.1:38492 => /127.0.0.1:46717] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46717
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
05:24:06.099 [nioEventLoopGroup-484-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
05:24:06.099 [nioEventLoopGroup-484-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf4948f8a, /127.0.0.1:38492 => /127.0.0.1:46717] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:06.099 [nioEventLoopGroup-484-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf4948f8a, /127.0.0.1:38492 => /127.0.0.1:46717] FLUSH
05:24:06.099 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:06.099 [nioEventLoopGroup-484-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf4948f8a, /127.0.0.1:38492 => /127.0.0.1:46717] FLUSH
05:24:06.099 [nioEventLoopGroup-484-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf4948f8a, /127.0.0.1:38492 :> /127.0.0.1:46717] INACTIVE
05:24:06.099 [nioEventLoopGroup-484-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf4948f8a, /127.0.0.1:38492 :> /127.0.0.1:46717] UNREGISTERED
05:24:06.099 [nioEventLoopGroup-489-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-489-1
05:24:06.100 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:06.101 [nioEventLoopGroup-484-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x533f6445, /127.0.0.1:38494 => /127.0.0.1:46717] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46717
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
05:24:06.101 [nioEventLoopGroup-484-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
05:24:06.102 [nioEventLoopGroup-484-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x533f6445, /127.0.0.1:38494 => /127.0.0.1:46717] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:06.102 [nioEventLoopGroup-484-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x533f6445, /127.0.0.1:38494 => /127.0.0.1:46717] FLUSH
05:24:06.102 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:06.102 [nioEventLoopGroup-484-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x533f6445, /127.0.0.1:38494 => /127.0.0.1:46717] FLUSH
05:24:06.102 [nioEventLoopGroup-484-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x533f6445, /127.0.0.1:38494 :> /127.0.0.1:46717] INACTIVE
05:24:06.102 [nioEventLoopGroup-484-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x533f6445, /127.0.0.1:38494 :> /127.0.0.1:46717] UNREGISTERED
05:24:06.102 [nioEventLoopGroup-490-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-490-1
05:24:06.102 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:06.104 [nioEventLoopGroup-484-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe50ab469, /127.0.0.1:38496 => /127.0.0.1:46717] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46717
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:06.104 [nioEventLoopGroup-484-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
05:24:06.104 [nioEventLoopGroup-484-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe50ab469, /127.0.0.1:38496 => /127.0.0.1:46717] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:06.104 [nioEventLoopGroup-484-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe50ab469, /127.0.0.1:38496 => /127.0.0.1:46717] FLUSH
05:24:06.104 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:06.104 [nioEventLoopGroup-484-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe50ab469, /127.0.0.1:38496 => /127.0.0.1:46717] FLUSH
05:24:06.104 [nioEventLoopGroup-484-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe50ab469, /127.0.0.1:38496 :> /127.0.0.1:46717] INACTIVE
05:24:06.104 [nioEventLoopGroup-484-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe50ab469, /127.0.0.1:38496 :> /127.0.0.1:46717] UNREGISTERED
05:24:06.104 [nioEventLoopGroup-491-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-491-1
05:24:06.105 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:06.106 [nioEventLoopGroup-484-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5affcb7d, /127.0.0.1:38498 => /127.0.0.1:46717] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46717
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:06.106 [nioEventLoopGroup-484-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
05:24:06.106 [nioEventLoopGroup-484-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5affcb7d, /127.0.0.1:38498 => /127.0.0.1:46717] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:06.106 [nioEventLoopGroup-484-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5affcb7d, /127.0.0.1:38498 => /127.0.0.1:46717] FLUSH
05:24:06.106 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:06.107 [nioEventLoopGroup-484-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5affcb7d, /127.0.0.1:38498 => /127.0.0.1:46717] FLUSH
05:24:06.107 [nioEventLoopGroup-484-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5affcb7d, /127.0.0.1:38498 :> /127.0.0.1:46717] INACTIVE
05:24:06.107 [nioEventLoopGroup-484-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5affcb7d, /127.0.0.1:38498 :> /127.0.0.1:46717] UNREGISTERED
05:24:06.107 [nioEventLoopGroup-492-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-492-1
05:24:06.107 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:06.108 [nioEventLoopGroup-484-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb284744, /127.0.0.1:38500 => /127.0.0.1:46717] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46717
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:06.108 [nioEventLoopGroup-484-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
05:24:06.109 [nioEventLoopGroup-484-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb284744, /127.0.0.1:38500 => /127.0.0.1:46717] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:06.109 [nioEventLoopGroup-484-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb284744, /127.0.0.1:38500 => /127.0.0.1:46717] FLUSH
05:24:06.109 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:06.109 [nioEventLoopGroup-484-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb284744, /127.0.0.1:38500 => /127.0.0.1:46717] FLUSH
05:24:06.109 [nioEventLoopGroup-484-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb284744, /127.0.0.1:38500 :> /127.0.0.1:46717] INACTIVE
05:24:06.109 [nioEventLoopGroup-484-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb284744, /127.0.0.1:38500 :> /127.0.0.1:46717] UNREGISTERED
05:24:06.109 [nioEventLoopGroup-493-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-493-1
05:24:06.109 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:06.111 [nioEventLoopGroup-484-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe8e378d1, /127.0.0.1:38502 => /127.0.0.1:46717] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46717
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:06.111 [nioEventLoopGroup-484-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
05:24:06.111 [nioEventLoopGroup-484-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe8e378d1, /127.0.0.1:38502 => /127.0.0.1:46717] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:06.111 [nioEventLoopGroup-484-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe8e378d1, /127.0.0.1:38502 => /127.0.0.1:46717] FLUSH
05:24:06.111 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:06.111 [nioEventLoopGroup-484-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe8e378d1, /127.0.0.1:38502 => /127.0.0.1:46717] FLUSH
05:24:06.111 [nioEventLoopGroup-484-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe8e378d1, /127.0.0.1:38502 :> /127.0.0.1:46717] INACTIVE
05:24:06.111 [nioEventLoopGroup-484-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe8e378d1, /127.0.0.1:38502 :> /127.0.0.1:46717] UNREGISTERED
05:24:06.111 [nioEventLoopGroup-494-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-494-1
05:24:06.112 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:06.113 [nioEventLoopGroup-484-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd3b1c5c2, /127.0.0.1:38504 => /127.0.0.1:46717] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46717
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:06.113 [nioEventLoopGroup-484-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
05:24:06.114 [nioEventLoopGroup-484-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd3b1c5c2, /127.0.0.1:38504 => /127.0.0.1:46717] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:06.114 [nioEventLoopGroup-484-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd3b1c5c2, /127.0.0.1:38504 => /127.0.0.1:46717] FLUSH
05:24:06.114 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:06.114 [nioEventLoopGroup-484-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd3b1c5c2, /127.0.0.1:38504 => /127.0.0.1:46717] FLUSH
05:24:06.114 [nioEventLoopGroup-484-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd3b1c5c2, /127.0.0.1:38504 :> /127.0.0.1:46717] INACTIVE
05:24:06.114 [nioEventLoopGroup-484-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd3b1c5c2, /127.0.0.1:38504 :> /127.0.0.1:46717] UNREGISTERED
05:24:06.114 [nioEventLoopGroup-495-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-495-1
05:24:06.114 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:06.115 [nioEventLoopGroup-484-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcec8079f, /127.0.0.1:38506 => /127.0.0.1:46717] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46717
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:06.116 [nioEventLoopGroup-484-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
05:24:06.116 [nioEventLoopGroup-484-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcec8079f, /127.0.0.1:38506 => /127.0.0.1:46717] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:06.116 [nioEventLoopGroup-484-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcec8079f, /127.0.0.1:38506 => /127.0.0.1:46717] FLUSH
05:24:06.116 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:06.116 [nioEventLoopGroup-484-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcec8079f, /127.0.0.1:38506 => /127.0.0.1:46717] FLUSH
05:24:06.116 [nioEventLoopGroup-484-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcec8079f, /127.0.0.1:38506 :> /127.0.0.1:46717] INACTIVE
05:24:06.116 [nioEventLoopGroup-484-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcec8079f, /127.0.0.1:38506 :> /127.0.0.1:46717] UNREGISTERED
05:24:06.116 [nioEventLoopGroup-496-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-496-1
05:24:06.117 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:06.118 [nioEventLoopGroup-484-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8ff71d6b, /127.0.0.1:38508 => /127.0.0.1:46717] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46717
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:06.119 [nioEventLoopGroup-484-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:06.119 [nioEventLoopGroup-484-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8ff71d6b, /127.0.0.1:38508 => /127.0.0.1:46717] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:06.119 [nioEventLoopGroup-484-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8ff71d6b, /127.0.0.1:38508 => /127.0.0.1:46717] FLUSH
05:24:06.119 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:06.119 [nioEventLoopGroup-484-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8ff71d6b, /127.0.0.1:38508 => /127.0.0.1:46717] FLUSH
05:24:06.119 [nioEventLoopGroup-484-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8ff71d6b, /127.0.0.1:38508 :> /127.0.0.1:46717] INACTIVE
05:24:06.119 [nioEventLoopGroup-484-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8ff71d6b, /127.0.0.1:38508 :> /127.0.0.1:46717] UNREGISTERED
05:24:06.119 [nioEventLoopGroup-497-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-497-1
05:24:06.124 [nioEventLoopGroup-484-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe672a3ee, /127.0.0.1:38510 => /127.0.0.1:46717] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /json HTTP/1.1
Host: localhost:46717
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_102)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
05:24:06.125 [nioEventLoopGroup-484-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:46717" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:06.125 [nioEventLoopGroup-484-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:46717" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:06.125 [nioEventLoopGroup-484-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:46717" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:24:06.125 [nioEventLoopGroup-484-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:46717" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:06.125 [nioEventLoopGroup-484-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:46717" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:06.126 [nioEventLoopGroup-484-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:46717" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/json"
}
05:24:06.126 [nioEventLoopGroup-484-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
for request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:46717" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:24:06.126 [nioEventLoopGroup-484-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe672a3ee, /127.0.0.1:38510 => /127.0.0.1:46717] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 136, cap: 136/136))
HTTP/1.1 200 OK
Content-Type: text/json
Content-Length: 136
Connection: keep-alive, 136B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 0a 7b 0a 20 20 20 20 22 69 74 65 6d 73 22 3a 5b |.{. "items":[|
|00000010| 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 |. {. |
|00000020| 20 20 20 20 20 20 20 22 6e 61 6d 65 22 3a 22 61 | "name":"a|
|00000030| 6c 70 68 61 22 2c 0a 20 20 20 20 20 20 20 20 20 |lpha",. |
|00000040| 20 20 20 22 73 63 6f 72 65 22 3a 31 32 33 2c 0a | "score":123,.|
|00000050| 20 20 20 20 20 20 20 20 20 20 20 20 22 74 65 78 | "tex|
|00000060| 74 22 3a 20 22 4e 6f 74 68 69 6e 67 20 73 70 65 |t": "Nothing spe|
|00000070| 63 69 61 6c 22 0a 20 20 20 20 20 20 20 20 7d 0a |cial". }.|
|00000080| 20 20 20 20 5d 0a 7d 0a | ].}. |
+--------+-------------------------------------------------+----------------+
05:24:06.126 [nioEventLoopGroup-484-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe672a3ee, /127.0.0.1:38510 => /127.0.0.1:46717] FLUSH
05:24:06.146 [nioEventLoopGroup-484-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x27012345, /127.0.0.1:38512 => /127.0.0.1:46717] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /json HTTP/1.1
Host: localhost:46717
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_102)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
05:24:06.146 [nioEventLoopGroup-484-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:46717" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:06.147 [nioEventLoopGroup-484-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:46717" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:06.147 [nioEventLoopGroup-484-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:46717" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:24:06.147 [nioEventLoopGroup-484-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:46717" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:06.147 [nioEventLoopGroup-484-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:46717" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:06.147 [nioEventLoopGroup-484-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:46717" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/json"
}
05:24:06.148 [nioEventLoopGroup-484-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
for request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:46717" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:24:06.148 [nioEventLoopGroup-484-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x27012345, /127.0.0.1:38512 => /127.0.0.1:46717] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 136, cap: 136/136))
HTTP/1.1 200 OK
Content-Type: text/json
Content-Length: 136
Connection: keep-alive, 136B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 0a 7b 0a 20 20 20 20 22 69 74 65 6d 73 22 3a 5b |.{. "items":[|
|00000010| 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 |. {. |
|00000020| 20 20 20 20 20 20 20 22 6e 61 6d 65 22 3a 22 61 | "name":"a|
|00000030| 6c 70 68 61 22 2c 0a 20 20 20 20 20 20 20 20 20 |lpha",. |
|00000040| 20 20 20 22 73 63 6f 72 65 22 3a 31 32 33 2c 0a | "score":123,.|
|00000050| 20 20 20 20 20 20 20 20 20 20 20 20 22 74 65 78 | "tex|
|00000060| 74 22 3a 20 22 4e 6f 74 68 69 6e 67 20 73 70 65 |t": "Nothing spe|
|00000070| 63 69 61 6c 22 0a 20 20 20 20 20 20 20 20 7d 0a |cial". }.|
|00000080| 20 20 20 20 5d 0a 7d 0a | ].}. |
+--------+-------------------------------------------------+----------------+
05:24:06.148 [nioEventLoopGroup-484-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x27012345, /127.0.0.1:38512 => /127.0.0.1:46717] FLUSH
05:24:06.149 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
05:24:06.150 [nioEventLoopGroup-484-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x516284b1, /127.0.0.1:38514 => /127.0.0.1:46717] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:46717
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
05:24:06.150 [nioEventLoopGroup-484-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x516284b1, /127.0.0.1:38514 => /127.0.0.1:46717] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:06.151 [nioEventLoopGroup-484-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x516284b1, /127.0.0.1:38514 => /127.0.0.1:46717] FLUSH
05:24:06.151 [nioEventLoopGroup-484-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x516284b1, /127.0.0.1:38514 => /127.0.0.1:46717] CLOSE()
05:24:06.151 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:06.151 [nioEventLoopGroup-498-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-498-1
05:24:06.152 [nioEventLoopGroup-484-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-2
05:24:06.152 [nioEventLoopGroup-484-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-3
05:24:06.152 [nioEventLoopGroup-484-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-6
05:24:06.152 [nioEventLoopGroup-484-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-5
05:24:06.152 [nioEventLoopGroup-484-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-8
05:24:06.152 [nioEventLoopGroup-484-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-11
05:24:06.152 [nioEventLoopGroup-484-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-1
05:24:06.152 [nioEventLoopGroup-484-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe672a3ee, /127.0.0.1:38510 :> /127.0.0.1:46717] INACTIVE
05:24:06.152 [nioEventLoopGroup-484-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-4
05:24:06.152 [nioEventLoopGroup-484-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-9
05:24:06.152 [nioEventLoopGroup-484-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-7
05:24:06.152 [nioEventLoopGroup-484-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x27012345, /127.0.0.1:38512 :> /127.0.0.1:46717] INACTIVE
05:24:06.152 [nioEventLoopGroup-484-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-13
05:24:06.152 [nioEventLoopGroup-484-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-10
05:24:06.152 [nioEventLoopGroup-484-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-12
05:24:06.152 [nioEventLoopGroup-484-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe672a3ee, /127.0.0.1:38510 :> /127.0.0.1:46717] UNREGISTERED
05:24:06.152 [nioEventLoopGroup-484-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x27012345, /127.0.0.1:38512 :> /127.0.0.1:46717] UNREGISTERED
05:24:06.203 [nioEventLoopGroup-468-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd6fc00de, /127.0.0.1:47872 :> /127.0.0.1:36245] FLUSH
05:24:06.204 [nioEventLoopGroup-468-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd6fc00de, /127.0.0.1:47872 :> /127.0.0.1:36245] INACTIVE
05:24:06.204 [nioEventLoopGroup-468-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd6fc00de, /127.0.0.1:47872 :> /127.0.0.1:36245] UNREGISTERED
05:24:06.204 [nioEventLoopGroup-468-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-15
05:24:06.291 [nioEventLoopGroup-452-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-14
05:24:06.291 [nioEventLoopGroup-452-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-15
05:24:06.503 [MockServer thread for port: 41295] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 41295
05:24:06.503 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:06.505 [nioEventLoopGroup-500-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x27184ead, /127.0.0.1:32958 => /127.0.0.1:41295] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41295
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:06.505 [nioEventLoopGroup-500-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:06.505 [nioEventLoopGroup-500-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x27184ead, /127.0.0.1:32958 => /127.0.0.1:41295] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:06.505 [nioEventLoopGroup-500-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x27184ead, /127.0.0.1:32958 => /127.0.0.1:41295] FLUSH
05:24:06.505 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:06.505 [nioEventLoopGroup-500-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x27184ead, /127.0.0.1:32958 => /127.0.0.1:41295] FLUSH
05:24:06.506 [nioEventLoopGroup-500-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x27184ead, /127.0.0.1:32958 :> /127.0.0.1:41295] INACTIVE
05:24:06.506 [nioEventLoopGroup-501-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-501-1
05:24:06.506 [nioEventLoopGroup-500-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x27184ead, /127.0.0.1:32958 :> /127.0.0.1:41295] UNREGISTERED
05:24:06.506 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:06.507 [nioEventLoopGroup-500-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x64e0e4a2, /127.0.0.1:32960 => /127.0.0.1:41295] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41295
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:06.508 [nioEventLoopGroup-500-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
05:24:06.508 [nioEventLoopGroup-500-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x64e0e4a2, /127.0.0.1:32960 => /127.0.0.1:41295] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:06.508 [nioEventLoopGroup-500-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x64e0e4a2, /127.0.0.1:32960 => /127.0.0.1:41295] FLUSH
05:24:06.508 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:06.508 [nioEventLoopGroup-500-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x64e0e4a2, /127.0.0.1:32960 => /127.0.0.1:41295] FLUSH
05:24:06.508 [nioEventLoopGroup-500-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x64e0e4a2, /127.0.0.1:32960 :> /127.0.0.1:41295] INACTIVE
05:24:06.508 [nioEventLoopGroup-500-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x64e0e4a2, /127.0.0.1:32960 :> /127.0.0.1:41295] UNREGISTERED
05:24:06.508 [nioEventLoopGroup-502-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-502-1
05:24:06.509 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:06.511 [nioEventLoopGroup-500-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3fd007fb, /127.0.0.1:32962 => /127.0.0.1:41295] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41295
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:06.511 [nioEventLoopGroup-500-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
05:24:06.511 [nioEventLoopGroup-500-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3fd007fb, /127.0.0.1:32962 => /127.0.0.1:41295] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:06.511 [nioEventLoopGroup-500-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3fd007fb, /127.0.0.1:32962 => /127.0.0.1:41295] FLUSH
05:24:06.511 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:06.512 [nioEventLoopGroup-500-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3fd007fb, /127.0.0.1:32962 => /127.0.0.1:41295] FLUSH
05:24:06.512 [nioEventLoopGroup-503-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-503-1
05:24:06.512 [nioEventLoopGroup-500-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3fd007fb, /127.0.0.1:32962 :> /127.0.0.1:41295] INACTIVE
05:24:06.512 [nioEventLoopGroup-500-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3fd007fb, /127.0.0.1:32962 :> /127.0.0.1:41295] UNREGISTERED
05:24:06.512 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:06.513 [nioEventLoopGroup-500-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x61d1196d, /127.0.0.1:32964 => /127.0.0.1:41295] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41295
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:06.514 [nioEventLoopGroup-500-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:06.514 [nioEventLoopGroup-500-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x61d1196d, /127.0.0.1:32964 => /127.0.0.1:41295] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:06.514 [nioEventLoopGroup-500-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x61d1196d, /127.0.0.1:32964 => /127.0.0.1:41295] FLUSH
05:24:06.514 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:06.514 [nioEventLoopGroup-500-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x61d1196d, /127.0.0.1:32964 => /127.0.0.1:41295] FLUSH
05:24:06.514 [nioEventLoopGroup-500-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x61d1196d, /127.0.0.1:32964 :> /127.0.0.1:41295] INACTIVE
05:24:06.514 [nioEventLoopGroup-500-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x61d1196d, /127.0.0.1:32964 :> /127.0.0.1:41295] UNREGISTERED
05:24:06.514 [nioEventLoopGroup-504-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-504-1
05:24:06.515 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:06.516 [nioEventLoopGroup-500-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x122da85a, /127.0.0.1:32966 => /127.0.0.1:41295] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41295
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
05:24:06.516 [nioEventLoopGroup-500-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
05:24:06.516 [nioEventLoopGroup-500-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x122da85a, /127.0.0.1:32966 => /127.0.0.1:41295] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:06.517 [nioEventLoopGroup-500-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x122da85a, /127.0.0.1:32966 => /127.0.0.1:41295] FLUSH
05:24:06.517 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:06.517 [nioEventLoopGroup-500-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x122da85a, /127.0.0.1:32966 => /127.0.0.1:41295] FLUSH
05:24:06.517 [nioEventLoopGroup-500-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x122da85a, /127.0.0.1:32966 :> /127.0.0.1:41295] INACTIVE
05:24:06.517 [nioEventLoopGroup-500-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x122da85a, /127.0.0.1:32966 :> /127.0.0.1:41295] UNREGISTERED
05:24:06.517 [nioEventLoopGroup-505-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-505-1
05:24:06.517 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:06.519 [nioEventLoopGroup-500-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1dbcd24d, /127.0.0.1:32968 => /127.0.0.1:41295] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41295
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
05:24:06.519 [nioEventLoopGroup-500-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
05:24:06.519 [nioEventLoopGroup-500-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1dbcd24d, /127.0.0.1:32968 => /127.0.0.1:41295] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:06.519 [nioEventLoopGroup-500-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1dbcd24d, /127.0.0.1:32968 => /127.0.0.1:41295] FLUSH
05:24:06.520 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:06.520 [nioEventLoopGroup-500-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1dbcd24d, /127.0.0.1:32968 => /127.0.0.1:41295] FLUSH
05:24:06.520 [nioEventLoopGroup-500-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1dbcd24d, /127.0.0.1:32968 :> /127.0.0.1:41295] INACTIVE
05:24:06.520 [nioEventLoopGroup-500-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1dbcd24d, /127.0.0.1:32968 :> /127.0.0.1:41295] UNREGISTERED
05:24:06.520 [nioEventLoopGroup-506-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-506-1
05:24:06.520 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:06.522 [nioEventLoopGroup-500-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd568174b, /127.0.0.1:32970 => /127.0.0.1:41295] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41295
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:06.522 [nioEventLoopGroup-500-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
05:24:06.522 [nioEventLoopGroup-500-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd568174b, /127.0.0.1:32970 => /127.0.0.1:41295] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:06.522 [nioEventLoopGroup-500-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd568174b, /127.0.0.1:32970 => /127.0.0.1:41295] FLUSH
05:24:06.522 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:06.522 [nioEventLoopGroup-500-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd568174b, /127.0.0.1:32970 => /127.0.0.1:41295] FLUSH
05:24:06.522 [nioEventLoopGroup-500-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd568174b, /127.0.0.1:32970 :> /127.0.0.1:41295] INACTIVE
05:24:06.522 [nioEventLoopGroup-500-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd568174b, /127.0.0.1:32970 :> /127.0.0.1:41295] UNREGISTERED
05:24:06.522 [nioEventLoopGroup-507-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-507-1
05:24:06.523 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:06.524 [nioEventLoopGroup-500-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf1ad9522, /127.0.0.1:32972 => /127.0.0.1:41295] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41295
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:06.525 [nioEventLoopGroup-500-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
05:24:06.525 [nioEventLoopGroup-500-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf1ad9522, /127.0.0.1:32972 => /127.0.0.1:41295] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:06.525 [nioEventLoopGroup-500-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf1ad9522, /127.0.0.1:32972 => /127.0.0.1:41295] FLUSH
05:24:06.525 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:06.525 [nioEventLoopGroup-500-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf1ad9522, /127.0.0.1:32972 => /127.0.0.1:41295] FLUSH
05:24:06.525 [nioEventLoopGroup-508-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-508-1
05:24:06.525 [nioEventLoopGroup-500-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf1ad9522, /127.0.0.1:32972 :> /127.0.0.1:41295] INACTIVE
05:24:06.525 [nioEventLoopGroup-500-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf1ad9522, /127.0.0.1:32972 :> /127.0.0.1:41295] UNREGISTERED
05:24:06.525 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:06.527 [nioEventLoopGroup-500-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c778c28, /127.0.0.1:32974 => /127.0.0.1:41295] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41295
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:06.527 [nioEventLoopGroup-500-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
05:24:06.528 [nioEventLoopGroup-500-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c778c28, /127.0.0.1:32974 => /127.0.0.1:41295] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:06.528 [nioEventLoopGroup-500-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c778c28, /127.0.0.1:32974 => /127.0.0.1:41295] FLUSH
05:24:06.528 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:06.528 [nioEventLoopGroup-500-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c778c28, /127.0.0.1:32974 => /127.0.0.1:41295] FLUSH
05:24:06.528 [nioEventLoopGroup-500-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c778c28, /127.0.0.1:32974 :> /127.0.0.1:41295] INACTIVE
05:24:06.528 [nioEventLoopGroup-500-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c778c28, /127.0.0.1:32974 :> /127.0.0.1:41295] UNREGISTERED
05:24:06.528 [nioEventLoopGroup-509-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-509-1
05:24:06.529 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:06.530 [nioEventLoopGroup-500-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe42d1a01, /127.0.0.1:32976 => /127.0.0.1:41295] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41295
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:06.530 [nioEventLoopGroup-500-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
05:24:06.530 [nioEventLoopGroup-500-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe42d1a01, /127.0.0.1:32976 => /127.0.0.1:41295] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:06.530 [nioEventLoopGroup-500-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe42d1a01, /127.0.0.1:32976 => /127.0.0.1:41295] FLUSH
05:24:06.530 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:06.530 [nioEventLoopGroup-500-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe42d1a01, /127.0.0.1:32976 => /127.0.0.1:41295] FLUSH
05:24:06.531 [nioEventLoopGroup-500-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe42d1a01, /127.0.0.1:32976 :> /127.0.0.1:41295] INACTIVE
05:24:06.531 [nioEventLoopGroup-510-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-510-1
05:24:06.531 [nioEventLoopGroup-500-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe42d1a01, /127.0.0.1:32976 :> /127.0.0.1:41295] UNREGISTERED
05:24:06.531 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:06.532 [nioEventLoopGroup-500-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcdb6cb68, /127.0.0.1:32978 => /127.0.0.1:41295] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41295
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:06.533 [nioEventLoopGroup-500-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
05:24:06.533 [nioEventLoopGroup-500-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcdb6cb68, /127.0.0.1:32978 => /127.0.0.1:41295] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:06.533 [nioEventLoopGroup-500-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcdb6cb68, /127.0.0.1:32978 => /127.0.0.1:41295] FLUSH
05:24:06.533 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:06.533 [nioEventLoopGroup-500-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcdb6cb68, /127.0.0.1:32978 => /127.0.0.1:41295] FLUSH
05:24:06.533 [nioEventLoopGroup-500-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcdb6cb68, /127.0.0.1:32978 :> /127.0.0.1:41295] INACTIVE
05:24:06.533 [nioEventLoopGroup-500-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcdb6cb68, /127.0.0.1:32978 :> /127.0.0.1:41295] UNREGISTERED
05:24:06.533 [nioEventLoopGroup-511-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-511-1
05:24:06.534 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:06.535 [nioEventLoopGroup-500-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd04c1413, /127.0.0.1:32980 => /127.0.0.1:41295] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41295
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:06.536 [nioEventLoopGroup-500-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
05:24:06.536 [nioEventLoopGroup-500-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd04c1413, /127.0.0.1:32980 => /127.0.0.1:41295] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:06.536 [nioEventLoopGroup-500-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd04c1413, /127.0.0.1:32980 => /127.0.0.1:41295] FLUSH
05:24:06.539 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:06.539 [nioEventLoopGroup-500-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd04c1413, /127.0.0.1:32980 => /127.0.0.1:41295] FLUSH
05:24:06.539 [nioEventLoopGroup-500-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd04c1413, /127.0.0.1:32980 :> /127.0.0.1:41295] INACTIVE
05:24:06.539 [nioEventLoopGroup-500-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd04c1413, /127.0.0.1:32980 :> /127.0.0.1:41295] UNREGISTERED
05:24:06.539 [nioEventLoopGroup-512-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-512-1
05:24:06.539 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:06.541 [nioEventLoopGroup-500-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0e047421, /127.0.0.1:32982 => /127.0.0.1:41295] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41295
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:06.543 [nioEventLoopGroup-500-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:06.543 [nioEventLoopGroup-500-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0e047421, /127.0.0.1:32982 => /127.0.0.1:41295] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:06.543 [nioEventLoopGroup-500-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0e047421, /127.0.0.1:32982 => /127.0.0.1:41295] FLUSH
05:24:06.543 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:06.543 [nioEventLoopGroup-500-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0e047421, /127.0.0.1:32982 => /127.0.0.1:41295] FLUSH
05:24:06.543 [nioEventLoopGroup-513-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-513-1
05:24:06.543 [nioEventLoopGroup-500-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0e047421, /127.0.0.1:32982 :> /127.0.0.1:41295] INACTIVE
05:24:06.544 [nioEventLoopGroup-500-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0e047421, /127.0.0.1:32982 :> /127.0.0.1:41295] UNREGISTERED
05:24:06.545 [nioEventLoopGroup-500-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x04d224bc, /127.0.0.1:32984 => /127.0.0.1:41295] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /json HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_102
Host: localhost:41295
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
05:24:06.546 [nioEventLoopGroup-500-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41295" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:06.546 [nioEventLoopGroup-500-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41295" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:06.546 [nioEventLoopGroup-500-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41295" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:24:06.546 [nioEventLoopGroup-500-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41295" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:06.546 [nioEventLoopGroup-500-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41295" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:06.546 [nioEventLoopGroup-500-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41295" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/json"
}
05:24:06.547 [nioEventLoopGroup-500-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
for request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41295" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:24:06.547 [nioEventLoopGroup-500-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x04d224bc, /127.0.0.1:32984 => /127.0.0.1:41295] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 136, cap: 136/136))
HTTP/1.1 200 OK
Content-Type: text/json
Content-Length: 136
Connection: keep-alive, 136B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 0a 7b 0a 20 20 20 20 22 69 74 65 6d 73 22 3a 5b |.{. "items":[|
|00000010| 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 |. {. |
|00000020| 20 20 20 20 20 20 20 22 6e 61 6d 65 22 3a 22 61 | "name":"a|
|00000030| 6c 70 68 61 22 2c 0a 20 20 20 20 20 20 20 20 20 |lpha",. |
|00000040| 20 20 20 22 73 63 6f 72 65 22 3a 31 32 33 2c 0a | "score":123,.|
|00000050| 20 20 20 20 20 20 20 20 20 20 20 20 22 74 65 78 | "tex|
|00000060| 74 22 3a 20 22 4e 6f 74 68 69 6e 67 20 73 70 65 |t": "Nothing spe|
|00000070| 63 69 61 6c 22 0a 20 20 20 20 20 20 20 20 7d 0a |cial". }.|
|00000080| 20 20 20 20 5d 0a 7d 0a | ].}. |
+--------+-------------------------------------------------+----------------+
05:24:06.547 [nioEventLoopGroup-500-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x04d224bc, /127.0.0.1:32984 => /127.0.0.1:41295] FLUSH
05:24:06.549 [nioEventLoopGroup-500-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x04d224bc, /127.0.0.1:32984 => /127.0.0.1:41295] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /json HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_102
Host: localhost:41295
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
05:24:06.549 [nioEventLoopGroup-500-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41295" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:06.550 [nioEventLoopGroup-500-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41295" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:06.550 [nioEventLoopGroup-500-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41295" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:24:06.550 [nioEventLoopGroup-500-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41295" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:06.550 [nioEventLoopGroup-500-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41295" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:06.550 [nioEventLoopGroup-500-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41295" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/json"
}
05:24:06.551 [nioEventLoopGroup-500-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
for request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:41295" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:24:06.551 [nioEventLoopGroup-500-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x04d224bc, /127.0.0.1:32984 => /127.0.0.1:41295] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 136, cap: 136/136))
HTTP/1.1 200 OK
Content-Type: text/json
Content-Length: 136
Connection: keep-alive, 136B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 0a 7b 0a 20 20 20 20 22 69 74 65 6d 73 22 3a 5b |.{. "items":[|
|00000010| 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 |. {. |
|00000020| 20 20 20 20 20 20 20 22 6e 61 6d 65 22 3a 22 61 | "name":"a|
|00000030| 6c 70 68 61 22 2c 0a 20 20 20 20 20 20 20 20 20 |lpha",. |
|00000040| 20 20 20 22 73 63 6f 72 65 22 3a 31 32 33 2c 0a | "score":123,.|
|00000050| 20 20 20 20 20 20 20 20 20 20 20 20 22 74 65 78 | "tex|
|00000060| 74 22 3a 20 22 4e 6f 74 68 69 6e 67 20 73 70 65 |t": "Nothing spe|
|00000070| 63 69 61 6c 22 0a 20 20 20 20 20 20 20 20 7d 0a |cial". }.|
|00000080| 20 20 20 20 5d 0a 7d 0a | ].}. |
+--------+-------------------------------------------------+----------------+
05:24:06.551 [nioEventLoopGroup-500-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x04d224bc, /127.0.0.1:32984 => /127.0.0.1:41295] FLUSH
05:24:06.551 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
05:24:06.553 [nioEventLoopGroup-500-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe86d21ce, /127.0.0.1:32986 => /127.0.0.1:41295] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:41295
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
05:24:06.554 [nioEventLoopGroup-500-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe86d21ce, /127.0.0.1:32986 => /127.0.0.1:41295] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:06.554 [nioEventLoopGroup-500-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe86d21ce, /127.0.0.1:32986 => /127.0.0.1:41295] FLUSH
05:24:06.554 [nioEventLoopGroup-500-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe86d21ce, /127.0.0.1:32986 => /127.0.0.1:41295] CLOSE()
05:24:06.559 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:06.559 [nioEventLoopGroup-500-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-8
05:24:06.559 [nioEventLoopGroup-500-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-11
05:24:06.559 [nioEventLoopGroup-500-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-13
05:24:06.559 [nioEventLoopGroup-500-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-1
05:24:06.559 [nioEventLoopGroup-500-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-2
05:24:06.559 [nioEventLoopGroup-514-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-514-1
05:24:06.559 [nioEventLoopGroup-500-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-10
05:24:06.559 [nioEventLoopGroup-500-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-3
05:24:06.559 [nioEventLoopGroup-500-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-9
05:24:06.559 [nioEventLoopGroup-500-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-4
05:24:06.559 [nioEventLoopGroup-500-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-5
05:24:06.559 [nioEventLoopGroup-500-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-12
05:24:06.559 [nioEventLoopGroup-500-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-6
05:24:06.559 [nioEventLoopGroup-500-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-7
05:24:06.559 [nioEventLoopGroup-500-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x04d224bc, /127.0.0.1:32984 :> /127.0.0.1:41295] INACTIVE
05:24:06.560 [nioEventLoopGroup-500-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x04d224bc, /127.0.0.1:32984 :> /127.0.0.1:41295] UNREGISTERED
05:24:06.652 [nioEventLoopGroup-484-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x516284b1, /127.0.0.1:38514 :> /127.0.0.1:46717] FLUSH
05:24:06.652 [nioEventLoopGroup-484-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x516284b1, /127.0.0.1:38514 :> /127.0.0.1:46717] INACTIVE
05:24:06.652 [nioEventLoopGroup-484-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x516284b1, /127.0.0.1:38514 :> /127.0.0.1:46717] UNREGISTERED
05:24:06.652 [nioEventLoopGroup-484-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-16
05:24:06.705 [nioEventLoopGroup-468-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-14
05:24:06.912 [MockServer thread for port: 36015] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 36015
05:24:06.913 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:06.914 [nioEventLoopGroup-516-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8f87b588, /127.0.0.1:41524 => /127.0.0.1:36015] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36015
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:06.915 [nioEventLoopGroup-516-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:06.915 [nioEventLoopGroup-516-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8f87b588, /127.0.0.1:41524 => /127.0.0.1:36015] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:06.915 [nioEventLoopGroup-516-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8f87b588, /127.0.0.1:41524 => /127.0.0.1:36015] FLUSH
05:24:06.915 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:06.915 [nioEventLoopGroup-516-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8f87b588, /127.0.0.1:41524 => /127.0.0.1:36015] FLUSH
05:24:06.915 [nioEventLoopGroup-516-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8f87b588, /127.0.0.1:41524 :> /127.0.0.1:36015] INACTIVE
05:24:06.915 [nioEventLoopGroup-517-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-517-1
05:24:06.915 [nioEventLoopGroup-516-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8f87b588, /127.0.0.1:41524 :> /127.0.0.1:36015] UNREGISTERED
05:24:06.916 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:06.917 [nioEventLoopGroup-516-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc70bf424, /127.0.0.1:41526 => /127.0.0.1:36015] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36015
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:06.918 [nioEventLoopGroup-516-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
05:24:06.918 [nioEventLoopGroup-516-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc70bf424, /127.0.0.1:41526 => /127.0.0.1:36015] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:06.918 [nioEventLoopGroup-516-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc70bf424, /127.0.0.1:41526 => /127.0.0.1:36015] FLUSH
05:24:06.918 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:06.918 [nioEventLoopGroup-516-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc70bf424, /127.0.0.1:41526 => /127.0.0.1:36015] FLUSH
05:24:06.918 [nioEventLoopGroup-516-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc70bf424, /127.0.0.1:41526 :> /127.0.0.1:36015] INACTIVE
05:24:06.918 [nioEventLoopGroup-518-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-518-1
05:24:06.918 [nioEventLoopGroup-516-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc70bf424, /127.0.0.1:41526 :> /127.0.0.1:36015] UNREGISTERED
05:24:06.918 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:06.920 [nioEventLoopGroup-516-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x117e8e65, /127.0.0.1:41528 => /127.0.0.1:36015] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36015
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:06.920 [nioEventLoopGroup-516-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
05:24:06.920 [nioEventLoopGroup-516-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x117e8e65, /127.0.0.1:41528 => /127.0.0.1:36015] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:06.920 [nioEventLoopGroup-516-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x117e8e65, /127.0.0.1:41528 => /127.0.0.1:36015] FLUSH
05:24:06.920 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:06.920 [nioEventLoopGroup-516-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x117e8e65, /127.0.0.1:41528 => /127.0.0.1:36015] FLUSH
05:24:06.920 [nioEventLoopGroup-516-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x117e8e65, /127.0.0.1:41528 :> /127.0.0.1:36015] INACTIVE
05:24:06.920 [nioEventLoopGroup-516-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x117e8e65, /127.0.0.1:41528 :> /127.0.0.1:36015] UNREGISTERED
05:24:06.920 [nioEventLoopGroup-519-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-519-1
05:24:06.921 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:06.922 [nioEventLoopGroup-516-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x52b4b839, /127.0.0.1:41530 => /127.0.0.1:36015] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36015
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:06.922 [nioEventLoopGroup-516-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:06.922 [nioEventLoopGroup-516-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x52b4b839, /127.0.0.1:41530 => /127.0.0.1:36015] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:06.922 [nioEventLoopGroup-516-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x52b4b839, /127.0.0.1:41530 => /127.0.0.1:36015] FLUSH
05:24:06.923 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:06.923 [nioEventLoopGroup-516-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x52b4b839, /127.0.0.1:41530 => /127.0.0.1:36015] FLUSH
05:24:06.923 [nioEventLoopGroup-516-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x52b4b839, /127.0.0.1:41530 :> /127.0.0.1:36015] INACTIVE
05:24:06.923 [nioEventLoopGroup-520-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-520-1
05:24:06.923 [nioEventLoopGroup-516-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x52b4b839, /127.0.0.1:41530 :> /127.0.0.1:36015] UNREGISTERED
05:24:06.923 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:06.924 [nioEventLoopGroup-516-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x281275f3, /127.0.0.1:41532 => /127.0.0.1:36015] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36015
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
05:24:06.924 [nioEventLoopGroup-516-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
05:24:06.925 [nioEventLoopGroup-516-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x281275f3, /127.0.0.1:41532 => /127.0.0.1:36015] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:06.925 [nioEventLoopGroup-516-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x281275f3, /127.0.0.1:41532 => /127.0.0.1:36015] FLUSH
05:24:06.925 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:06.925 [nioEventLoopGroup-516-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x281275f3, /127.0.0.1:41532 => /127.0.0.1:36015] FLUSH
05:24:06.925 [nioEventLoopGroup-516-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x281275f3, /127.0.0.1:41532 :> /127.0.0.1:36015] INACTIVE
05:24:06.925 [nioEventLoopGroup-516-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x281275f3, /127.0.0.1:41532 :> /127.0.0.1:36015] UNREGISTERED
05:24:06.925 [nioEventLoopGroup-521-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-521-1
05:24:06.925 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:06.926 [nioEventLoopGroup-516-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5650c335, /127.0.0.1:41534 => /127.0.0.1:36015] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36015
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
05:24:06.927 [nioEventLoopGroup-516-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
05:24:06.927 [nioEventLoopGroup-516-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5650c335, /127.0.0.1:41534 => /127.0.0.1:36015] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:06.927 [nioEventLoopGroup-516-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5650c335, /127.0.0.1:41534 => /127.0.0.1:36015] FLUSH
05:24:06.927 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:06.928 [nioEventLoopGroup-516-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5650c335, /127.0.0.1:41534 => /127.0.0.1:36015] FLUSH
05:24:06.928 [nioEventLoopGroup-516-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5650c335, /127.0.0.1:41534 :> /127.0.0.1:36015] INACTIVE
05:24:06.928 [nioEventLoopGroup-516-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5650c335, /127.0.0.1:41534 :> /127.0.0.1:36015] UNREGISTERED
05:24:06.928 [nioEventLoopGroup-522-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-522-1
05:24:06.928 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:06.929 [nioEventLoopGroup-516-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4c4489c1, /127.0.0.1:41536 => /127.0.0.1:36015] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36015
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:06.930 [nioEventLoopGroup-516-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
05:24:06.930 [nioEventLoopGroup-516-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4c4489c1, /127.0.0.1:41536 => /127.0.0.1:36015] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:06.930 [nioEventLoopGroup-516-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4c4489c1, /127.0.0.1:41536 => /127.0.0.1:36015] FLUSH
05:24:06.930 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:06.930 [nioEventLoopGroup-516-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4c4489c1, /127.0.0.1:41536 => /127.0.0.1:36015] FLUSH
05:24:06.930 [nioEventLoopGroup-516-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4c4489c1, /127.0.0.1:41536 :> /127.0.0.1:36015] INACTIVE
05:24:06.931 [nioEventLoopGroup-516-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4c4489c1, /127.0.0.1:41536 :> /127.0.0.1:36015] UNREGISTERED
05:24:06.931 [nioEventLoopGroup-523-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-523-1
05:24:06.931 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:06.932 [nioEventLoopGroup-516-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb97a4c34, /127.0.0.1:41538 => /127.0.0.1:36015] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36015
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:06.933 [nioEventLoopGroup-516-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
05:24:06.933 [nioEventLoopGroup-516-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb97a4c34, /127.0.0.1:41538 => /127.0.0.1:36015] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:06.933 [nioEventLoopGroup-516-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb97a4c34, /127.0.0.1:41538 => /127.0.0.1:36015] FLUSH
05:24:06.933 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:06.933 [nioEventLoopGroup-524-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-524-1
05:24:06.933 [nioEventLoopGroup-516-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb97a4c34, /127.0.0.1:41538 => /127.0.0.1:36015] FLUSH
05:24:06.933 [nioEventLoopGroup-516-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb97a4c34, /127.0.0.1:41538 :> /127.0.0.1:36015] INACTIVE
05:24:06.933 [nioEventLoopGroup-516-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb97a4c34, /127.0.0.1:41538 :> /127.0.0.1:36015] UNREGISTERED
05:24:06.934 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:06.935 [nioEventLoopGroup-516-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9b760ead, /127.0.0.1:41540 => /127.0.0.1:36015] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36015
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:06.935 [nioEventLoopGroup-516-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
05:24:06.936 [nioEventLoopGroup-516-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9b760ead, /127.0.0.1:41540 => /127.0.0.1:36015] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:06.936 [nioEventLoopGroup-516-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9b760ead, /127.0.0.1:41540 => /127.0.0.1:36015] FLUSH
05:24:06.936 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:06.936 [nioEventLoopGroup-516-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9b760ead, /127.0.0.1:41540 => /127.0.0.1:36015] FLUSH
05:24:06.936 [nioEventLoopGroup-516-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9b760ead, /127.0.0.1:41540 :> /127.0.0.1:36015] INACTIVE
05:24:06.936 [nioEventLoopGroup-525-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-525-1
05:24:06.936 [nioEventLoopGroup-516-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9b760ead, /127.0.0.1:41540 :> /127.0.0.1:36015] UNREGISTERED
05:24:06.936 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:06.937 [nioEventLoopGroup-516-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x531cb7ee, /127.0.0.1:41542 => /127.0.0.1:36015] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36015
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:06.938 [nioEventLoopGroup-516-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
05:24:06.938 [nioEventLoopGroup-516-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x531cb7ee, /127.0.0.1:41542 => /127.0.0.1:36015] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:06.938 [nioEventLoopGroup-516-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x531cb7ee, /127.0.0.1:41542 => /127.0.0.1:36015] FLUSH
05:24:06.938 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:06.938 [nioEventLoopGroup-516-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x531cb7ee, /127.0.0.1:41542 => /127.0.0.1:36015] FLUSH
05:24:06.938 [nioEventLoopGroup-516-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x531cb7ee, /127.0.0.1:41542 :> /127.0.0.1:36015] INACTIVE
05:24:06.938 [nioEventLoopGroup-526-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-526-1
05:24:06.938 [nioEventLoopGroup-516-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x531cb7ee, /127.0.0.1:41542 :> /127.0.0.1:36015] UNREGISTERED
05:24:06.939 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:06.940 [nioEventLoopGroup-516-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad33ef85, /127.0.0.1:41544 => /127.0.0.1:36015] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36015
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:06.940 [nioEventLoopGroup-516-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
05:24:06.940 [nioEventLoopGroup-516-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad33ef85, /127.0.0.1:41544 => /127.0.0.1:36015] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:06.940 [nioEventLoopGroup-516-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad33ef85, /127.0.0.1:41544 => /127.0.0.1:36015] FLUSH
05:24:06.940 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:06.940 [nioEventLoopGroup-527-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-527-1
05:24:06.941 [nioEventLoopGroup-516-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad33ef85, /127.0.0.1:41544 => /127.0.0.1:36015] FLUSH
05:24:06.941 [nioEventLoopGroup-516-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad33ef85, /127.0.0.1:41544 :> /127.0.0.1:36015] INACTIVE
05:24:06.941 [nioEventLoopGroup-516-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad33ef85, /127.0.0.1:41544 :> /127.0.0.1:36015] UNREGISTERED
05:24:06.941 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:06.942 [nioEventLoopGroup-516-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a5df1f4, /127.0.0.1:41546 => /127.0.0.1:36015] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36015
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:06.943 [nioEventLoopGroup-516-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
05:24:06.943 [nioEventLoopGroup-516-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a5df1f4, /127.0.0.1:41546 => /127.0.0.1:36015] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:06.943 [nioEventLoopGroup-516-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a5df1f4, /127.0.0.1:41546 => /127.0.0.1:36015] FLUSH
05:24:06.943 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:06.943 [nioEventLoopGroup-528-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-528-1
05:24:06.943 [nioEventLoopGroup-516-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a5df1f4, /127.0.0.1:41546 => /127.0.0.1:36015] FLUSH
05:24:06.943 [nioEventLoopGroup-516-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a5df1f4, /127.0.0.1:41546 :> /127.0.0.1:36015] INACTIVE
05:24:06.943 [nioEventLoopGroup-516-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a5df1f4, /127.0.0.1:41546 :> /127.0.0.1:36015] UNREGISTERED
05:24:06.944 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:06.945 [nioEventLoopGroup-516-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x49e901f0, /127.0.0.1:41548 => /127.0.0.1:36015] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36015
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:06.946 [nioEventLoopGroup-516-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:06.946 [nioEventLoopGroup-516-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x49e901f0, /127.0.0.1:41548 => /127.0.0.1:36015] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:06.946 [nioEventLoopGroup-516-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x49e901f0, /127.0.0.1:41548 => /127.0.0.1:36015] FLUSH
05:24:06.946 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:06.946 [nioEventLoopGroup-516-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x49e901f0, /127.0.0.1:41548 => /127.0.0.1:36015] FLUSH
05:24:06.946 [nioEventLoopGroup-516-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x49e901f0, /127.0.0.1:41548 :> /127.0.0.1:36015] INACTIVE
05:24:06.946 [nioEventLoopGroup-516-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x49e901f0, /127.0.0.1:41548 :> /127.0.0.1:36015] UNREGISTERED
05:24:06.946 [nioEventLoopGroup-529-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-529-1
05:24:06.954 [nioEventLoopGroup-516-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71ed9639, /127.0.0.1:41550 => /127.0.0.1:36015] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /foo HTTP/1.1
Host: localhost:36015
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_102)
Cookie: biscuit=wafer
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
05:24:06.963 [nioEventLoopGroup-516-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36015" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:06.963 [nioEventLoopGroup-516-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36015" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = true
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:06.963 [nioEventLoopGroup-516-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36015" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
05:24:06.963 [nioEventLoopGroup-516-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36015" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
05:24:06.963 [nioEventLoopGroup-516-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71ed9639, /127.0.0.1:41550 => /127.0.0.1:36015] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 113, cap: 113/113))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 113
Connection: keep-alive, 113B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e |o miss -->Testin|
|00000060| 67 20 43 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c |g C</body></html|
|00000070| 3e |> |
+--------+-------------------------------------------------+----------------+
05:24:06.963 [nioEventLoopGroup-516-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71ed9639, /127.0.0.1:41550 => /127.0.0.1:36015] FLUSH
05:24:06.967 [nioEventLoopGroup-516-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8775358f, /127.0.0.1:41552 => /127.0.0.1:36015] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /foo HTTP/1.1
Host: localhost:36015
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_102)
Cookie: biscuit=wafer
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
05:24:06.967 [nioEventLoopGroup-516-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36015" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:06.967 [nioEventLoopGroup-516-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36015" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = true
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:06.968 [nioEventLoopGroup-516-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36015" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
05:24:06.968 [nioEventLoopGroup-516-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36015" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
05:24:06.968 [nioEventLoopGroup-516-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8775358f, /127.0.0.1:41552 => /127.0.0.1:36015] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 113, cap: 113/113))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 113
Connection: keep-alive, 113B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e |o miss -->Testin|
|00000060| 67 20 43 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c |g C</body></html|
|00000070| 3e |> |
+--------+-------------------------------------------------+----------------+
05:24:06.968 [nioEventLoopGroup-516-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8775358f, /127.0.0.1:41552 => /127.0.0.1:36015] FLUSH
05:24:06.969 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
05:24:06.970 [nioEventLoopGroup-516-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x475eaed3, /127.0.0.1:41554 => /127.0.0.1:36015] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:36015
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
05:24:06.970 [nioEventLoopGroup-516-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x475eaed3, /127.0.0.1:41554 => /127.0.0.1:36015] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:06.970 [nioEventLoopGroup-516-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x475eaed3, /127.0.0.1:41554 => /127.0.0.1:36015] FLUSH
05:24:06.970 [nioEventLoopGroup-516-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x475eaed3, /127.0.0.1:41554 => /127.0.0.1:36015] CLOSE()
05:24:06.970 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:06.971 [nioEventLoopGroup-530-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-530-1
05:24:06.972 [nioEventLoopGroup-516-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-2
05:24:06.972 [nioEventLoopGroup-516-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-1
05:24:06.972 [nioEventLoopGroup-516-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-3
05:24:06.972 [nioEventLoopGroup-516-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-4
05:24:06.973 [nioEventLoopGroup-516-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-5
05:24:06.973 [nioEventLoopGroup-516-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-6
05:24:06.973 [nioEventLoopGroup-516-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-7
05:24:06.973 [nioEventLoopGroup-516-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-8
05:24:06.973 [nioEventLoopGroup-516-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-9
05:24:06.973 [nioEventLoopGroup-516-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-10
05:24:06.973 [nioEventLoopGroup-516-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-11
05:24:06.973 [nioEventLoopGroup-516-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-12
05:24:06.973 [nioEventLoopGroup-516-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-13
05:24:06.973 [nioEventLoopGroup-516-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71ed9639, /127.0.0.1:41550 :> /127.0.0.1:36015] INACTIVE
05:24:06.973 [nioEventLoopGroup-516-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8775358f, /127.0.0.1:41552 :> /127.0.0.1:36015] INACTIVE
05:24:06.973 [nioEventLoopGroup-516-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71ed9639, /127.0.0.1:41550 :> /127.0.0.1:36015] UNREGISTERED
05:24:06.973 [nioEventLoopGroup-516-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8775358f, /127.0.0.1:41552 :> /127.0.0.1:36015] UNREGISTERED
05:24:07.059 [nioEventLoopGroup-500-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe86d21ce, /127.0.0.1:32986 :> /127.0.0.1:41295] FLUSH
05:24:07.059 [nioEventLoopGroup-500-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe86d21ce, /127.0.0.1:32986 :> /127.0.0.1:41295] INACTIVE
05:24:07.059 [nioEventLoopGroup-500-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe86d21ce, /127.0.0.1:32986 :> /127.0.0.1:41295] UNREGISTERED
05:24:07.059 [nioEventLoopGroup-500-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-15
05:24:07.153 [nioEventLoopGroup-484-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-14
05:24:07.153 [nioEventLoopGroup-484-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-15
05:24:07.326 [MockServer thread for port: 43563] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 43563
05:24:07.327 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:07.328 [nioEventLoopGroup-532-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb834a397, /127.0.0.1:46378 => /127.0.0.1:43563] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43563
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:07.329 [nioEventLoopGroup-532-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:07.329 [nioEventLoopGroup-532-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb834a397, /127.0.0.1:46378 => /127.0.0.1:43563] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:07.329 [nioEventLoopGroup-532-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb834a397, /127.0.0.1:46378 => /127.0.0.1:43563] FLUSH
05:24:07.329 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:07.329 [nioEventLoopGroup-532-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb834a397, /127.0.0.1:46378 => /127.0.0.1:43563] FLUSH
05:24:07.329 [nioEventLoopGroup-532-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb834a397, /127.0.0.1:46378 :> /127.0.0.1:43563] INACTIVE
05:24:07.329 [nioEventLoopGroup-532-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb834a397, /127.0.0.1:46378 :> /127.0.0.1:43563] UNREGISTERED
05:24:07.329 [nioEventLoopGroup-533-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-533-1
05:24:07.330 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:07.333 [nioEventLoopGroup-532-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf8f4f628, /127.0.0.1:46380 => /127.0.0.1:43563] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43563
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:07.333 [nioEventLoopGroup-532-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
05:24:07.334 [nioEventLoopGroup-532-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf8f4f628, /127.0.0.1:46380 => /127.0.0.1:43563] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:07.334 [nioEventLoopGroup-532-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf8f4f628, /127.0.0.1:46380 => /127.0.0.1:43563] FLUSH
05:24:07.334 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:07.334 [nioEventLoopGroup-532-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf8f4f628, /127.0.0.1:46380 => /127.0.0.1:43563] FLUSH
05:24:07.334 [nioEventLoopGroup-532-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf8f4f628, /127.0.0.1:46380 :> /127.0.0.1:43563] INACTIVE
05:24:07.334 [nioEventLoopGroup-534-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-534-1
05:24:07.334 [nioEventLoopGroup-532-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf8f4f628, /127.0.0.1:46380 :> /127.0.0.1:43563] UNREGISTERED
05:24:07.335 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:07.337 [nioEventLoopGroup-532-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x40e59d95, /127.0.0.1:46382 => /127.0.0.1:43563] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43563
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:07.338 [nioEventLoopGroup-532-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
05:24:07.338 [nioEventLoopGroup-532-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x40e59d95, /127.0.0.1:46382 => /127.0.0.1:43563] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:07.338 [nioEventLoopGroup-532-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x40e59d95, /127.0.0.1:46382 => /127.0.0.1:43563] FLUSH
05:24:07.338 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:07.338 [nioEventLoopGroup-532-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x40e59d95, /127.0.0.1:46382 => /127.0.0.1:43563] FLUSH
05:24:07.338 [nioEventLoopGroup-532-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x40e59d95, /127.0.0.1:46382 :> /127.0.0.1:43563] INACTIVE
05:24:07.338 [nioEventLoopGroup-532-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x40e59d95, /127.0.0.1:46382 :> /127.0.0.1:43563] UNREGISTERED
05:24:07.338 [nioEventLoopGroup-535-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-535-1
05:24:07.340 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:07.342 [nioEventLoopGroup-532-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb8b74451, /127.0.0.1:46384 => /127.0.0.1:43563] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43563
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:07.343 [nioEventLoopGroup-532-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:07.343 [nioEventLoopGroup-532-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb8b74451, /127.0.0.1:46384 => /127.0.0.1:43563] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:07.343 [nioEventLoopGroup-532-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb8b74451, /127.0.0.1:46384 => /127.0.0.1:43563] FLUSH
05:24:07.343 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:07.343 [nioEventLoopGroup-532-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb8b74451, /127.0.0.1:46384 => /127.0.0.1:43563] FLUSH
05:24:07.343 [nioEventLoopGroup-532-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb8b74451, /127.0.0.1:46384 :> /127.0.0.1:43563] INACTIVE
05:24:07.343 [nioEventLoopGroup-532-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb8b74451, /127.0.0.1:46384 :> /127.0.0.1:43563] UNREGISTERED
05:24:07.343 [nioEventLoopGroup-536-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-536-1
05:24:07.344 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:07.347 [nioEventLoopGroup-532-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x14693a79, /127.0.0.1:46386 => /127.0.0.1:43563] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43563
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
05:24:07.347 [nioEventLoopGroup-532-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
05:24:07.347 [nioEventLoopGroup-532-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x14693a79, /127.0.0.1:46386 => /127.0.0.1:43563] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:07.347 [nioEventLoopGroup-532-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x14693a79, /127.0.0.1:46386 => /127.0.0.1:43563] FLUSH
05:24:07.348 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:07.348 [nioEventLoopGroup-532-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x14693a79, /127.0.0.1:46386 => /127.0.0.1:43563] FLUSH
05:24:07.348 [nioEventLoopGroup-532-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x14693a79, /127.0.0.1:46386 :> /127.0.0.1:43563] INACTIVE
05:24:07.348 [nioEventLoopGroup-532-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x14693a79, /127.0.0.1:46386 :> /127.0.0.1:43563] UNREGISTERED
05:24:07.348 [nioEventLoopGroup-537-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-537-1
05:24:07.349 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:07.351 [nioEventLoopGroup-532-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc276ec41, /127.0.0.1:46388 => /127.0.0.1:43563] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43563
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
05:24:07.352 [nioEventLoopGroup-532-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
05:24:07.352 [nioEventLoopGroup-532-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc276ec41, /127.0.0.1:46388 => /127.0.0.1:43563] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:07.352 [nioEventLoopGroup-532-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc276ec41, /127.0.0.1:46388 => /127.0.0.1:43563] FLUSH
05:24:07.352 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:07.352 [nioEventLoopGroup-532-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc276ec41, /127.0.0.1:46388 => /127.0.0.1:43563] FLUSH
05:24:07.352 [nioEventLoopGroup-532-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc276ec41, /127.0.0.1:46388 :> /127.0.0.1:43563] INACTIVE
05:24:07.352 [nioEventLoopGroup-538-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-538-1
05:24:07.352 [nioEventLoopGroup-532-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc276ec41, /127.0.0.1:46388 :> /127.0.0.1:43563] UNREGISTERED
05:24:07.353 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:07.356 [nioEventLoopGroup-532-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x89b9bd2d, /127.0.0.1:46390 => /127.0.0.1:43563] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43563
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:07.356 [nioEventLoopGroup-532-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
05:24:07.357 [nioEventLoopGroup-532-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x89b9bd2d, /127.0.0.1:46390 => /127.0.0.1:43563] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:07.357 [nioEventLoopGroup-532-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x89b9bd2d, /127.0.0.1:46390 => /127.0.0.1:43563] FLUSH
05:24:07.357 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:07.357 [nioEventLoopGroup-532-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x89b9bd2d, /127.0.0.1:46390 => /127.0.0.1:43563] FLUSH
05:24:07.357 [nioEventLoopGroup-532-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x89b9bd2d, /127.0.0.1:46390 :> /127.0.0.1:43563] INACTIVE
05:24:07.357 [nioEventLoopGroup-532-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x89b9bd2d, /127.0.0.1:46390 :> /127.0.0.1:43563] UNREGISTERED
05:24:07.357 [nioEventLoopGroup-539-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-539-1
05:24:07.358 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:07.360 [nioEventLoopGroup-532-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba9813b8, /127.0.0.1:46392 => /127.0.0.1:43563] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43563
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:07.361 [nioEventLoopGroup-532-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
05:24:07.361 [nioEventLoopGroup-532-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba9813b8, /127.0.0.1:46392 => /127.0.0.1:43563] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:07.361 [nioEventLoopGroup-532-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba9813b8, /127.0.0.1:46392 => /127.0.0.1:43563] FLUSH
05:24:07.361 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:07.361 [nioEventLoopGroup-532-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba9813b8, /127.0.0.1:46392 => /127.0.0.1:43563] FLUSH
05:24:07.361 [nioEventLoopGroup-532-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba9813b8, /127.0.0.1:46392 :> /127.0.0.1:43563] INACTIVE
05:24:07.361 [nioEventLoopGroup-532-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba9813b8, /127.0.0.1:46392 :> /127.0.0.1:43563] UNREGISTERED
05:24:07.361 [nioEventLoopGroup-540-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-540-1
05:24:07.362 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:07.364 [nioEventLoopGroup-532-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6d21ad52, /127.0.0.1:46394 => /127.0.0.1:43563] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43563
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:07.365 [nioEventLoopGroup-532-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
05:24:07.365 [nioEventLoopGroup-532-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6d21ad52, /127.0.0.1:46394 => /127.0.0.1:43563] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:07.365 [nioEventLoopGroup-532-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6d21ad52, /127.0.0.1:46394 => /127.0.0.1:43563] FLUSH
05:24:07.365 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:07.365 [nioEventLoopGroup-532-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6d21ad52, /127.0.0.1:46394 => /127.0.0.1:43563] FLUSH
05:24:07.365 [nioEventLoopGroup-532-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6d21ad52, /127.0.0.1:46394 :> /127.0.0.1:43563] INACTIVE
05:24:07.365 [nioEventLoopGroup-532-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6d21ad52, /127.0.0.1:46394 :> /127.0.0.1:43563] UNREGISTERED
05:24:07.365 [nioEventLoopGroup-541-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-541-1
05:24:07.365 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:07.368 [nioEventLoopGroup-532-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x06b218e5, /127.0.0.1:46396 => /127.0.0.1:43563] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43563
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:07.369 [nioEventLoopGroup-532-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
05:24:07.369 [nioEventLoopGroup-532-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x06b218e5, /127.0.0.1:46396 => /127.0.0.1:43563] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:07.369 [nioEventLoopGroup-532-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x06b218e5, /127.0.0.1:46396 => /127.0.0.1:43563] FLUSH
05:24:07.369 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:07.369 [nioEventLoopGroup-532-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x06b218e5, /127.0.0.1:46396 => /127.0.0.1:43563] FLUSH
05:24:07.369 [nioEventLoopGroup-532-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x06b218e5, /127.0.0.1:46396 :> /127.0.0.1:43563] INACTIVE
05:24:07.369 [nioEventLoopGroup-532-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x06b218e5, /127.0.0.1:46396 :> /127.0.0.1:43563] UNREGISTERED
05:24:07.369 [nioEventLoopGroup-542-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-542-1
05:24:07.404 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:07.407 [nioEventLoopGroup-532-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x777a063e, /127.0.0.1:46398 => /127.0.0.1:43563] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43563
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:07.407 [nioEventLoopGroup-532-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
05:24:07.407 [nioEventLoopGroup-532-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x777a063e, /127.0.0.1:46398 => /127.0.0.1:43563] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:07.407 [nioEventLoopGroup-532-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x777a063e, /127.0.0.1:46398 => /127.0.0.1:43563] FLUSH
05:24:07.407 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:07.407 [nioEventLoopGroup-532-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x777a063e, /127.0.0.1:46398 => /127.0.0.1:43563] FLUSH
05:24:07.407 [nioEventLoopGroup-532-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x777a063e, /127.0.0.1:46398 :> /127.0.0.1:43563] INACTIVE
05:24:07.407 [nioEventLoopGroup-543-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-543-1
05:24:07.407 [nioEventLoopGroup-532-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x777a063e, /127.0.0.1:46398 :> /127.0.0.1:43563] UNREGISTERED
05:24:07.408 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:07.409 [nioEventLoopGroup-532-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9567030a, /127.0.0.1:46400 => /127.0.0.1:43563] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43563
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:07.409 [nioEventLoopGroup-532-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
05:24:07.410 [nioEventLoopGroup-532-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9567030a, /127.0.0.1:46400 => /127.0.0.1:43563] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:07.410 [nioEventLoopGroup-532-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9567030a, /127.0.0.1:46400 => /127.0.0.1:43563] FLUSH
05:24:07.410 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:07.410 [nioEventLoopGroup-532-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9567030a, /127.0.0.1:46400 => /127.0.0.1:43563] FLUSH
05:24:07.410 [nioEventLoopGroup-532-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9567030a, /127.0.0.1:46400 :> /127.0.0.1:43563] INACTIVE
05:24:07.410 [nioEventLoopGroup-532-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9567030a, /127.0.0.1:46400 :> /127.0.0.1:43563] UNREGISTERED
05:24:07.410 [nioEventLoopGroup-544-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-544-1
05:24:07.410 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:07.411 [nioEventLoopGroup-532-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3d6dd248, /127.0.0.1:46402 => /127.0.0.1:43563] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43563
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:07.412 [nioEventLoopGroup-532-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:07.412 [nioEventLoopGroup-532-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3d6dd248, /127.0.0.1:46402 => /127.0.0.1:43563] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:07.412 [nioEventLoopGroup-532-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3d6dd248, /127.0.0.1:46402 => /127.0.0.1:43563] FLUSH
05:24:07.412 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:07.412 [nioEventLoopGroup-532-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3d6dd248, /127.0.0.1:46402 => /127.0.0.1:43563] FLUSH
05:24:07.412 [nioEventLoopGroup-532-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3d6dd248, /127.0.0.1:46402 :> /127.0.0.1:43563] INACTIVE
05:24:07.412 [nioEventLoopGroup-532-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3d6dd248, /127.0.0.1:46402 :> /127.0.0.1:43563] UNREGISTERED
05:24:07.412 [nioEventLoopGroup-545-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-545-1
05:24:07.414 [nioEventLoopGroup-532-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaeaed960, /127.0.0.1:46404 => /127.0.0.1:43563] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /foo HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_102
Host: localhost:43563
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Cookie: biscuit=wafer
Content-Length: 0, 0B
05:24:07.415 [nioEventLoopGroup-532-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:43563" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:07.415 [nioEventLoopGroup-532-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:43563" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = true
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:07.415 [nioEventLoopGroup-532-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:43563" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
05:24:07.415 [nioEventLoopGroup-532-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:43563" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
05:24:07.415 [nioEventLoopGroup-532-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaeaed960, /127.0.0.1:46404 => /127.0.0.1:43563] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 113, cap: 113/113))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 113
Connection: keep-alive, 113B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e |o miss -->Testin|
|00000060| 67 20 43 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c |g C</body></html|
|00000070| 3e |> |
+--------+-------------------------------------------------+----------------+
05:24:07.415 [nioEventLoopGroup-532-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaeaed960, /127.0.0.1:46404 => /127.0.0.1:43563] FLUSH
05:24:07.417 [nioEventLoopGroup-532-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaeaed960, /127.0.0.1:46404 => /127.0.0.1:43563] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /foo HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_102
Host: localhost:43563
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Cookie: biscuit=wafer
Content-Length: 0, 0B
05:24:07.417 [nioEventLoopGroup-532-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:43563" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:07.417 [nioEventLoopGroup-532-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:43563" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = true
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:07.418 [nioEventLoopGroup-532-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:43563" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
05:24:07.418 [nioEventLoopGroup-532-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:43563" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
05:24:07.418 [nioEventLoopGroup-532-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaeaed960, /127.0.0.1:46404 => /127.0.0.1:43563] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 113, cap: 113/113))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 113
Connection: keep-alive, 113B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e |o miss -->Testin|
|00000060| 67 20 43 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c |g C</body></html|
|00000070| 3e |> |
+--------+-------------------------------------------------+----------------+
05:24:07.418 [nioEventLoopGroup-532-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaeaed960, /127.0.0.1:46404 => /127.0.0.1:43563] FLUSH
05:24:07.418 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
05:24:07.420 [nioEventLoopGroup-532-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7545b642, /127.0.0.1:46406 => /127.0.0.1:43563] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:43563
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
05:24:07.420 [nioEventLoopGroup-532-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7545b642, /127.0.0.1:46406 => /127.0.0.1:43563] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:07.420 [nioEventLoopGroup-532-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7545b642, /127.0.0.1:46406 => /127.0.0.1:43563] FLUSH
05:24:07.420 [nioEventLoopGroup-532-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7545b642, /127.0.0.1:46406 => /127.0.0.1:43563] CLOSE()
05:24:07.420 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:07.427 [nioEventLoopGroup-546-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-546-1
05:24:07.427 [nioEventLoopGroup-532-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-2
05:24:07.427 [nioEventLoopGroup-532-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-1
05:24:07.427 [nioEventLoopGroup-532-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-4
05:24:07.427 [nioEventLoopGroup-532-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-7
05:24:07.427 [nioEventLoopGroup-532-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-8
05:24:07.427 [nioEventLoopGroup-532-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-5
05:24:07.427 [nioEventLoopGroup-532-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-6
05:24:07.427 [nioEventLoopGroup-532-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-10
05:24:07.427 [nioEventLoopGroup-532-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-11
05:24:07.427 [nioEventLoopGroup-532-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-9
05:24:07.427 [nioEventLoopGroup-532-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-12
05:24:07.427 [nioEventLoopGroup-532-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaeaed960, /127.0.0.1:46404 :> /127.0.0.1:43563] INACTIVE
05:24:07.427 [nioEventLoopGroup-532-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-13
05:24:07.428 [nioEventLoopGroup-532-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-3
05:24:07.428 [nioEventLoopGroup-532-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaeaed960, /127.0.0.1:46404 :> /127.0.0.1:43563] UNREGISTERED
05:24:07.473 [nioEventLoopGroup-516-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x475eaed3, /127.0.0.1:41554 :> /127.0.0.1:36015] FLUSH
05:24:07.473 [nioEventLoopGroup-516-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x475eaed3, /127.0.0.1:41554 :> /127.0.0.1:36015] INACTIVE
05:24:07.473 [nioEventLoopGroup-516-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x475eaed3, /127.0.0.1:41554 :> /127.0.0.1:36015] UNREGISTERED
05:24:07.473 [nioEventLoopGroup-516-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-16
05:24:07.561 [nioEventLoopGroup-500-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-14
05:24:07.779 [MockServer thread for port: 37069] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 37069
05:24:07.779 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:07.780 [nioEventLoopGroup-548-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87975c6c, /127.0.0.1:47050 => /127.0.0.1:37069] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37069
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:07.781 [nioEventLoopGroup-548-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:07.781 [nioEventLoopGroup-548-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87975c6c, /127.0.0.1:47050 => /127.0.0.1:37069] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:07.781 [nioEventLoopGroup-548-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87975c6c, /127.0.0.1:47050 => /127.0.0.1:37069] FLUSH
05:24:07.781 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:07.781 [nioEventLoopGroup-548-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87975c6c, /127.0.0.1:47050 => /127.0.0.1:37069] FLUSH
05:24:07.781 [nioEventLoopGroup-548-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87975c6c, /127.0.0.1:47050 :> /127.0.0.1:37069] INACTIVE
05:24:07.781 [nioEventLoopGroup-548-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87975c6c, /127.0.0.1:47050 :> /127.0.0.1:37069] UNREGISTERED
05:24:07.782 [nioEventLoopGroup-549-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-549-1
05:24:07.782 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:07.783 [nioEventLoopGroup-548-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4100378b, /127.0.0.1:47052 => /127.0.0.1:37069] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37069
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:07.784 [nioEventLoopGroup-548-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
05:24:07.784 [nioEventLoopGroup-548-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4100378b, /127.0.0.1:47052 => /127.0.0.1:37069] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:07.784 [nioEventLoopGroup-548-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4100378b, /127.0.0.1:47052 => /127.0.0.1:37069] FLUSH
05:24:07.784 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:07.784 [nioEventLoopGroup-548-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4100378b, /127.0.0.1:47052 => /127.0.0.1:37069] FLUSH
05:24:07.784 [nioEventLoopGroup-548-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4100378b, /127.0.0.1:47052 :> /127.0.0.1:37069] INACTIVE
05:24:07.784 [nioEventLoopGroup-550-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-550-1
05:24:07.784 [nioEventLoopGroup-548-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4100378b, /127.0.0.1:47052 :> /127.0.0.1:37069] UNREGISTERED
05:24:07.785 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:07.786 [nioEventLoopGroup-548-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9541efb1, /127.0.0.1:47054 => /127.0.0.1:37069] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37069
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:07.786 [nioEventLoopGroup-548-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
05:24:07.787 [nioEventLoopGroup-548-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9541efb1, /127.0.0.1:47054 => /127.0.0.1:37069] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:07.787 [nioEventLoopGroup-548-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9541efb1, /127.0.0.1:47054 => /127.0.0.1:37069] FLUSH
05:24:07.787 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:07.787 [nioEventLoopGroup-548-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9541efb1, /127.0.0.1:47054 => /127.0.0.1:37069] FLUSH
05:24:07.787 [nioEventLoopGroup-548-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9541efb1, /127.0.0.1:47054 :> /127.0.0.1:37069] INACTIVE
05:24:07.787 [nioEventLoopGroup-548-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9541efb1, /127.0.0.1:47054 :> /127.0.0.1:37069] UNREGISTERED
05:24:07.787 [nioEventLoopGroup-551-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-551-1
05:24:07.787 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:07.788 [nioEventLoopGroup-548-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb30c8e7a, /127.0.0.1:47056 => /127.0.0.1:37069] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37069
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:07.789 [nioEventLoopGroup-548-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:07.789 [nioEventLoopGroup-548-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb30c8e7a, /127.0.0.1:47056 => /127.0.0.1:37069] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:07.789 [nioEventLoopGroup-548-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb30c8e7a, /127.0.0.1:47056 => /127.0.0.1:37069] FLUSH
05:24:07.789 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:07.789 [nioEventLoopGroup-548-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb30c8e7a, /127.0.0.1:47056 => /127.0.0.1:37069] FLUSH
05:24:07.789 [nioEventLoopGroup-548-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb30c8e7a, /127.0.0.1:47056 :> /127.0.0.1:37069] INACTIVE
05:24:07.789 [nioEventLoopGroup-552-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-552-1
05:24:07.789 [nioEventLoopGroup-548-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb30c8e7a, /127.0.0.1:47056 :> /127.0.0.1:37069] UNREGISTERED
05:24:07.789 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:07.790 [nioEventLoopGroup-548-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x13ff55b0, /127.0.0.1:47058 => /127.0.0.1:37069] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37069
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
05:24:07.791 [nioEventLoopGroup-548-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
05:24:07.791 [nioEventLoopGroup-548-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x13ff55b0, /127.0.0.1:47058 => /127.0.0.1:37069] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:07.791 [nioEventLoopGroup-548-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x13ff55b0, /127.0.0.1:47058 => /127.0.0.1:37069] FLUSH
05:24:07.791 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:07.791 [nioEventLoopGroup-548-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x13ff55b0, /127.0.0.1:47058 => /127.0.0.1:37069] FLUSH
05:24:07.791 [nioEventLoopGroup-548-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x13ff55b0, /127.0.0.1:47058 :> /127.0.0.1:37069] INACTIVE
05:24:07.791 [nioEventLoopGroup-553-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-553-1
05:24:07.791 [nioEventLoopGroup-548-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x13ff55b0, /127.0.0.1:47058 :> /127.0.0.1:37069] UNREGISTERED
05:24:07.792 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:07.793 [nioEventLoopGroup-548-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7274d316, /127.0.0.1:47060 => /127.0.0.1:37069] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37069
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
05:24:07.793 [nioEventLoopGroup-548-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
05:24:07.793 [nioEventLoopGroup-548-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7274d316, /127.0.0.1:47060 => /127.0.0.1:37069] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:07.793 [nioEventLoopGroup-548-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7274d316, /127.0.0.1:47060 => /127.0.0.1:37069] FLUSH
05:24:07.793 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:07.793 [nioEventLoopGroup-548-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7274d316, /127.0.0.1:47060 => /127.0.0.1:37069] FLUSH
05:24:07.793 [nioEventLoopGroup-548-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7274d316, /127.0.0.1:47060 :> /127.0.0.1:37069] INACTIVE
05:24:07.793 [nioEventLoopGroup-554-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-554-1
05:24:07.793 [nioEventLoopGroup-548-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7274d316, /127.0.0.1:47060 :> /127.0.0.1:37069] UNREGISTERED
05:24:07.794 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:07.795 [nioEventLoopGroup-548-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd1a8edf4, /127.0.0.1:47062 => /127.0.0.1:37069] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37069
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:07.795 [nioEventLoopGroup-548-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
05:24:07.795 [nioEventLoopGroup-548-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd1a8edf4, /127.0.0.1:47062 => /127.0.0.1:37069] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:07.795 [nioEventLoopGroup-548-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd1a8edf4, /127.0.0.1:47062 => /127.0.0.1:37069] FLUSH
05:24:07.795 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:07.796 [nioEventLoopGroup-548-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd1a8edf4, /127.0.0.1:47062 => /127.0.0.1:37069] FLUSH
05:24:07.796 [nioEventLoopGroup-548-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd1a8edf4, /127.0.0.1:47062 :> /127.0.0.1:37069] INACTIVE
05:24:07.796 [nioEventLoopGroup-548-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd1a8edf4, /127.0.0.1:47062 :> /127.0.0.1:37069] UNREGISTERED
05:24:07.796 [nioEventLoopGroup-555-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-555-1
05:24:07.796 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:07.797 [nioEventLoopGroup-548-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbe68187b, /127.0.0.1:47064 => /127.0.0.1:37069] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37069
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:07.797 [nioEventLoopGroup-548-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
05:24:07.798 [nioEventLoopGroup-548-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbe68187b, /127.0.0.1:47064 => /127.0.0.1:37069] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:07.798 [nioEventLoopGroup-548-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbe68187b, /127.0.0.1:47064 => /127.0.0.1:37069] FLUSH
05:24:07.798 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:07.798 [nioEventLoopGroup-548-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbe68187b, /127.0.0.1:47064 => /127.0.0.1:37069] FLUSH
05:24:07.798 [nioEventLoopGroup-548-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbe68187b, /127.0.0.1:47064 :> /127.0.0.1:37069] INACTIVE
05:24:07.798 [nioEventLoopGroup-556-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-556-1
05:24:07.798 [nioEventLoopGroup-548-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbe68187b, /127.0.0.1:47064 :> /127.0.0.1:37069] UNREGISTERED
05:24:07.798 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:07.799 [nioEventLoopGroup-548-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac443231, /127.0.0.1:47066 => /127.0.0.1:37069] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37069
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:07.800 [nioEventLoopGroup-548-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
05:24:07.800 [nioEventLoopGroup-548-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac443231, /127.0.0.1:47066 => /127.0.0.1:37069] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:07.800 [nioEventLoopGroup-548-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac443231, /127.0.0.1:47066 => /127.0.0.1:37069] FLUSH
05:24:07.800 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:07.800 [nioEventLoopGroup-548-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac443231, /127.0.0.1:47066 => /127.0.0.1:37069] FLUSH
05:24:07.800 [nioEventLoopGroup-557-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-557-1
05:24:07.800 [nioEventLoopGroup-548-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac443231, /127.0.0.1:47066 :> /127.0.0.1:37069] INACTIVE
05:24:07.800 [nioEventLoopGroup-548-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac443231, /127.0.0.1:47066 :> /127.0.0.1:37069] UNREGISTERED
05:24:07.800 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:07.801 [nioEventLoopGroup-548-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6a69de05, /127.0.0.1:47068 => /127.0.0.1:37069] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37069
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:07.801 [nioEventLoopGroup-548-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
05:24:07.801 [nioEventLoopGroup-548-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6a69de05, /127.0.0.1:47068 => /127.0.0.1:37069] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:07.802 [nioEventLoopGroup-548-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6a69de05, /127.0.0.1:47068 => /127.0.0.1:37069] FLUSH
05:24:07.802 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:07.802 [nioEventLoopGroup-548-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6a69de05, /127.0.0.1:47068 => /127.0.0.1:37069] FLUSH
05:24:07.802 [nioEventLoopGroup-558-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-558-1
05:24:07.802 [nioEventLoopGroup-548-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6a69de05, /127.0.0.1:47068 :> /127.0.0.1:37069] INACTIVE
05:24:07.802 [nioEventLoopGroup-548-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6a69de05, /127.0.0.1:47068 :> /127.0.0.1:37069] UNREGISTERED
05:24:07.802 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:07.804 [nioEventLoopGroup-548-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ca965bd, /127.0.0.1:47070 => /127.0.0.1:37069] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37069
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:07.804 [nioEventLoopGroup-548-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
05:24:07.804 [nioEventLoopGroup-548-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ca965bd, /127.0.0.1:47070 => /127.0.0.1:37069] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:07.804 [nioEventLoopGroup-548-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ca965bd, /127.0.0.1:47070 => /127.0.0.1:37069] FLUSH
05:24:07.804 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:07.804 [nioEventLoopGroup-548-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ca965bd, /127.0.0.1:47070 => /127.0.0.1:37069] FLUSH
05:24:07.804 [nioEventLoopGroup-548-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ca965bd, /127.0.0.1:47070 :> /127.0.0.1:37069] INACTIVE
05:24:07.804 [nioEventLoopGroup-559-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-559-1
05:24:07.804 [nioEventLoopGroup-548-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ca965bd, /127.0.0.1:47070 :> /127.0.0.1:37069] UNREGISTERED
05:24:07.805 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:07.806 [nioEventLoopGroup-548-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4b0a8dde, /127.0.0.1:47072 => /127.0.0.1:37069] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37069
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:07.806 [nioEventLoopGroup-548-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
05:24:07.806 [nioEventLoopGroup-548-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4b0a8dde, /127.0.0.1:47072 => /127.0.0.1:37069] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:07.806 [nioEventLoopGroup-548-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4b0a8dde, /127.0.0.1:47072 => /127.0.0.1:37069] FLUSH
05:24:07.807 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:07.807 [nioEventLoopGroup-548-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4b0a8dde, /127.0.0.1:47072 => /127.0.0.1:37069] FLUSH
05:24:07.807 [nioEventLoopGroup-548-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4b0a8dde, /127.0.0.1:47072 :> /127.0.0.1:37069] INACTIVE
05:24:07.807 [nioEventLoopGroup-548-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4b0a8dde, /127.0.0.1:47072 :> /127.0.0.1:37069] UNREGISTERED
05:24:07.807 [nioEventLoopGroup-560-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-560-1
05:24:07.807 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:07.808 [nioEventLoopGroup-548-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7aa1483d, /127.0.0.1:47074 => /127.0.0.1:37069] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37069
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:07.808 [nioEventLoopGroup-548-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:07.809 [nioEventLoopGroup-548-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7aa1483d, /127.0.0.1:47074 => /127.0.0.1:37069] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:07.809 [nioEventLoopGroup-548-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7aa1483d, /127.0.0.1:47074 => /127.0.0.1:37069] FLUSH
05:24:07.809 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:07.809 [nioEventLoopGroup-548-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7aa1483d, /127.0.0.1:47074 => /127.0.0.1:37069] FLUSH
05:24:07.809 [nioEventLoopGroup-548-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7aa1483d, /127.0.0.1:47074 :> /127.0.0.1:37069] INACTIVE
05:24:07.809 [nioEventLoopGroup-548-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7aa1483d, /127.0.0.1:47074 :> /127.0.0.1:37069] UNREGISTERED
05:24:07.809 [nioEventLoopGroup-561-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-561-1
05:24:07.818 [nioEventLoopGroup-548-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7290d0d7, /127.0.0.1:47076 => /127.0.0.1:37069] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /foo?alpha=bravo HTTP/1.1
Host: localhost:37069
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_102)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
05:24:07.819 [nioEventLoopGroup-548-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ],
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37069" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:07.819 [nioEventLoopGroup-548-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ],
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37069" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
05:24:07.819 [nioEventLoopGroup-548-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ],
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37069" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:24:07.819 [nioEventLoopGroup-548-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7290d0d7, /127.0.0.1:47076 => /127.0.0.1:37069] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 113, cap: 113/113))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 113
Connection: keep-alive, 113B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e |o miss -->Testin|
|00000060| 67 20 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c |g B</body></html|
|00000070| 3e |> |
+--------+-------------------------------------------------+----------------+
05:24:07.819 [nioEventLoopGroup-548-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7290d0d7, /127.0.0.1:47076 => /127.0.0.1:37069] FLUSH
05:24:07.823 [nioEventLoopGroup-548-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1b1ebfa3, /127.0.0.1:47078 => /127.0.0.1:37069] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /foo?alpha=bravo HTTP/1.1
Host: localhost:37069
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_102)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
05:24:07.823 [nioEventLoopGroup-548-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ],
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37069" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:07.823 [nioEventLoopGroup-548-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ],
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37069" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
05:24:07.824 [nioEventLoopGroup-548-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ],
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37069" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:24:07.824 [nioEventLoopGroup-548-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1b1ebfa3, /127.0.0.1:47078 => /127.0.0.1:37069] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 113, cap: 113/113))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 113
Connection: keep-alive, 113B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e |o miss -->Testin|
|00000060| 67 20 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c |g B</body></html|
|00000070| 3e |> |
+--------+-------------------------------------------------+----------------+
05:24:07.824 [nioEventLoopGroup-548-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1b1ebfa3, /127.0.0.1:47078 => /127.0.0.1:37069] FLUSH
05:24:07.824 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
05:24:07.825 [nioEventLoopGroup-548-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x02c3cb7b, /127.0.0.1:47080 => /127.0.0.1:37069] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:37069
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
05:24:07.826 [nioEventLoopGroup-548-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x02c3cb7b, /127.0.0.1:47080 => /127.0.0.1:37069] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:07.826 [nioEventLoopGroup-548-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x02c3cb7b, /127.0.0.1:47080 => /127.0.0.1:37069] FLUSH
05:24:07.826 [nioEventLoopGroup-548-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x02c3cb7b, /127.0.0.1:47080 => /127.0.0.1:37069] CLOSE()
05:24:07.826 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:07.826 [nioEventLoopGroup-562-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-562-1
05:24:07.827 [nioEventLoopGroup-548-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-1
05:24:07.827 [nioEventLoopGroup-548-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-3
05:24:07.827 [nioEventLoopGroup-548-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-2
05:24:07.827 [nioEventLoopGroup-548-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-8
05:24:07.827 [nioEventLoopGroup-548-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-5
05:24:07.827 [nioEventLoopGroup-548-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-6
05:24:07.827 [nioEventLoopGroup-548-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-11
05:24:07.827 [nioEventLoopGroup-548-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7290d0d7, /127.0.0.1:47076 :> /127.0.0.1:37069] INACTIVE
05:24:07.827 [nioEventLoopGroup-548-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-9
05:24:07.827 [nioEventLoopGroup-548-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-4
05:24:07.827 [nioEventLoopGroup-548-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-7
05:24:07.827 [nioEventLoopGroup-548-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-12
05:24:07.827 [nioEventLoopGroup-548-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-10
05:24:07.827 [nioEventLoopGroup-548-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-13
05:24:07.827 [nioEventLoopGroup-548-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1b1ebfa3, /127.0.0.1:47078 :> /127.0.0.1:37069] INACTIVE
05:24:07.827 [nioEventLoopGroup-548-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7290d0d7, /127.0.0.1:47076 :> /127.0.0.1:37069] UNREGISTERED
05:24:07.827 [nioEventLoopGroup-548-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1b1ebfa3, /127.0.0.1:47078 :> /127.0.0.1:37069] UNREGISTERED
05:24:07.927 [nioEventLoopGroup-532-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7545b642, /127.0.0.1:46406 :> /127.0.0.1:43563] FLUSH
05:24:07.927 [nioEventLoopGroup-532-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7545b642, /127.0.0.1:46406 :> /127.0.0.1:43563] INACTIVE
05:24:07.927 [nioEventLoopGroup-532-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7545b642, /127.0.0.1:46406 :> /127.0.0.1:43563] UNREGISTERED
05:24:07.927 [nioEventLoopGroup-532-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-15
05:24:07.974 [nioEventLoopGroup-516-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-14
05:24:07.974 [nioEventLoopGroup-516-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-15
05:24:08.179 [MockServer thread for port: 40179] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 40179
05:24:08.179 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:08.180 [nioEventLoopGroup-564-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x343aa228, /127.0.0.1:56292 => /127.0.0.1:40179] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40179
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:08.181 [nioEventLoopGroup-564-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:08.181 [nioEventLoopGroup-564-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x343aa228, /127.0.0.1:56292 => /127.0.0.1:40179] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:08.181 [nioEventLoopGroup-564-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x343aa228, /127.0.0.1:56292 => /127.0.0.1:40179] FLUSH
05:24:08.181 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:08.181 [nioEventLoopGroup-564-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x343aa228, /127.0.0.1:56292 => /127.0.0.1:40179] FLUSH
05:24:08.181 [nioEventLoopGroup-564-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x343aa228, /127.0.0.1:56292 :> /127.0.0.1:40179] INACTIVE
05:24:08.181 [nioEventLoopGroup-564-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x343aa228, /127.0.0.1:56292 :> /127.0.0.1:40179] UNREGISTERED
05:24:08.181 [nioEventLoopGroup-565-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-565-1
05:24:08.182 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:08.183 [nioEventLoopGroup-564-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x805fd5cd, /127.0.0.1:56294 => /127.0.0.1:40179] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40179
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:08.184 [nioEventLoopGroup-564-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
05:24:08.184 [nioEventLoopGroup-564-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x805fd5cd, /127.0.0.1:56294 => /127.0.0.1:40179] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:08.184 [nioEventLoopGroup-564-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x805fd5cd, /127.0.0.1:56294 => /127.0.0.1:40179] FLUSH
05:24:08.184 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:08.184 [nioEventLoopGroup-564-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x805fd5cd, /127.0.0.1:56294 => /127.0.0.1:40179] FLUSH
05:24:08.184 [nioEventLoopGroup-564-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x805fd5cd, /127.0.0.1:56294 :> /127.0.0.1:40179] INACTIVE
05:24:08.184 [nioEventLoopGroup-566-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-566-1
05:24:08.185 [nioEventLoopGroup-564-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x805fd5cd, /127.0.0.1:56294 :> /127.0.0.1:40179] UNREGISTERED
05:24:08.185 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:08.186 [nioEventLoopGroup-564-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x10b1b016, /127.0.0.1:56296 => /127.0.0.1:40179] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40179
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:08.187 [nioEventLoopGroup-564-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
05:24:08.187 [nioEventLoopGroup-564-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x10b1b016, /127.0.0.1:56296 => /127.0.0.1:40179] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:08.187 [nioEventLoopGroup-564-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x10b1b016, /127.0.0.1:56296 => /127.0.0.1:40179] FLUSH
05:24:08.187 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:08.187 [nioEventLoopGroup-564-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x10b1b016, /127.0.0.1:56296 => /127.0.0.1:40179] FLUSH
05:24:08.187 [nioEventLoopGroup-564-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x10b1b016, /127.0.0.1:56296 :> /127.0.0.1:40179] INACTIVE
05:24:08.187 [nioEventLoopGroup-567-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-567-1
05:24:08.187 [nioEventLoopGroup-564-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x10b1b016, /127.0.0.1:56296 :> /127.0.0.1:40179] UNREGISTERED
05:24:08.188 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:08.189 [nioEventLoopGroup-564-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbadb4d2f, /127.0.0.1:56298 => /127.0.0.1:40179] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40179
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:08.189 [nioEventLoopGroup-564-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:08.189 [nioEventLoopGroup-564-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbadb4d2f, /127.0.0.1:56298 => /127.0.0.1:40179] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:08.189 [nioEventLoopGroup-564-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbadb4d2f, /127.0.0.1:56298 => /127.0.0.1:40179] FLUSH
05:24:08.189 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:08.189 [nioEventLoopGroup-564-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbadb4d2f, /127.0.0.1:56298 => /127.0.0.1:40179] FLUSH
05:24:08.189 [nioEventLoopGroup-564-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbadb4d2f, /127.0.0.1:56298 :> /127.0.0.1:40179] INACTIVE
05:24:08.189 [nioEventLoopGroup-564-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbadb4d2f, /127.0.0.1:56298 :> /127.0.0.1:40179] UNREGISTERED
05:24:08.189 [nioEventLoopGroup-568-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-568-1
05:24:08.190 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:08.191 [nioEventLoopGroup-564-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4d18295a, /127.0.0.1:56300 => /127.0.0.1:40179] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40179
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
05:24:08.191 [nioEventLoopGroup-564-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
05:24:08.192 [nioEventLoopGroup-564-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4d18295a, /127.0.0.1:56300 => /127.0.0.1:40179] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:08.192 [nioEventLoopGroup-564-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4d18295a, /127.0.0.1:56300 => /127.0.0.1:40179] FLUSH
05:24:08.192 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:08.192 [nioEventLoopGroup-564-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4d18295a, /127.0.0.1:56300 => /127.0.0.1:40179] FLUSH
05:24:08.192 [nioEventLoopGroup-564-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4d18295a, /127.0.0.1:56300 :> /127.0.0.1:40179] INACTIVE
05:24:08.192 [nioEventLoopGroup-569-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-569-1
05:24:08.192 [nioEventLoopGroup-564-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4d18295a, /127.0.0.1:56300 :> /127.0.0.1:40179] UNREGISTERED
05:24:08.192 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:08.193 [nioEventLoopGroup-564-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x07476622, /127.0.0.1:56302 => /127.0.0.1:40179] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40179
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
05:24:08.194 [nioEventLoopGroup-564-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
05:24:08.194 [nioEventLoopGroup-564-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x07476622, /127.0.0.1:56302 => /127.0.0.1:40179] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:08.194 [nioEventLoopGroup-564-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x07476622, /127.0.0.1:56302 => /127.0.0.1:40179] FLUSH
05:24:08.194 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:08.194 [nioEventLoopGroup-564-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x07476622, /127.0.0.1:56302 => /127.0.0.1:40179] FLUSH
05:24:08.194 [nioEventLoopGroup-570-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-570-1
05:24:08.194 [nioEventLoopGroup-564-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x07476622, /127.0.0.1:56302 :> /127.0.0.1:40179] INACTIVE
05:24:08.194 [nioEventLoopGroup-564-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x07476622, /127.0.0.1:56302 :> /127.0.0.1:40179] UNREGISTERED
05:24:08.195 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:08.196 [nioEventLoopGroup-564-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8d337ee4, /127.0.0.1:56304 => /127.0.0.1:40179] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40179
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:08.196 [nioEventLoopGroup-564-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
05:24:08.196 [nioEventLoopGroup-564-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8d337ee4, /127.0.0.1:56304 => /127.0.0.1:40179] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:08.196 [nioEventLoopGroup-564-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8d337ee4, /127.0.0.1:56304 => /127.0.0.1:40179] FLUSH
05:24:08.196 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:08.196 [nioEventLoopGroup-564-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8d337ee4, /127.0.0.1:56304 => /127.0.0.1:40179] FLUSH
05:24:08.196 [nioEventLoopGroup-564-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8d337ee4, /127.0.0.1:56304 :> /127.0.0.1:40179] INACTIVE
05:24:08.196 [nioEventLoopGroup-564-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8d337ee4, /127.0.0.1:56304 :> /127.0.0.1:40179] UNREGISTERED
05:24:08.196 [nioEventLoopGroup-571-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-571-1
05:24:08.197 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:08.198 [nioEventLoopGroup-564-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd9945298, /127.0.0.1:56306 => /127.0.0.1:40179] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40179
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:08.198 [nioEventLoopGroup-564-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
05:24:08.198 [nioEventLoopGroup-564-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd9945298, /127.0.0.1:56306 => /127.0.0.1:40179] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:08.198 [nioEventLoopGroup-564-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd9945298, /127.0.0.1:56306 => /127.0.0.1:40179] FLUSH
05:24:08.199 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:08.199 [nioEventLoopGroup-564-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd9945298, /127.0.0.1:56306 => /127.0.0.1:40179] FLUSH
05:24:08.199 [nioEventLoopGroup-564-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd9945298, /127.0.0.1:56306 :> /127.0.0.1:40179] INACTIVE
05:24:08.199 [nioEventLoopGroup-572-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-572-1
05:24:08.199 [nioEventLoopGroup-564-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd9945298, /127.0.0.1:56306 :> /127.0.0.1:40179] UNREGISTERED
05:24:08.199 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:08.200 [nioEventLoopGroup-564-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5b32c31, /127.0.0.1:56308 => /127.0.0.1:40179] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40179
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:08.200 [nioEventLoopGroup-564-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
05:24:08.201 [nioEventLoopGroup-564-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5b32c31, /127.0.0.1:56308 => /127.0.0.1:40179] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:08.201 [nioEventLoopGroup-564-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5b32c31, /127.0.0.1:56308 => /127.0.0.1:40179] FLUSH
05:24:08.205 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:08.205 [nioEventLoopGroup-573-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-573-1
05:24:08.205 [nioEventLoopGroup-564-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5b32c31, /127.0.0.1:56308 => /127.0.0.1:40179] FLUSH
05:24:08.205 [nioEventLoopGroup-564-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5b32c31, /127.0.0.1:56308 :> /127.0.0.1:40179] INACTIVE
05:24:08.205 [nioEventLoopGroup-564-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5b32c31, /127.0.0.1:56308 :> /127.0.0.1:40179] UNREGISTERED
05:24:08.206 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:08.207 [nioEventLoopGroup-564-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf7520821, /127.0.0.1:56310 => /127.0.0.1:40179] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40179
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:08.207 [nioEventLoopGroup-564-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
05:24:08.207 [nioEventLoopGroup-564-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf7520821, /127.0.0.1:56310 => /127.0.0.1:40179] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:08.207 [nioEventLoopGroup-564-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf7520821, /127.0.0.1:56310 => /127.0.0.1:40179] FLUSH
05:24:08.208 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:08.208 [nioEventLoopGroup-564-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf7520821, /127.0.0.1:56310 => /127.0.0.1:40179] FLUSH
05:24:08.208 [nioEventLoopGroup-564-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf7520821, /127.0.0.1:56310 :> /127.0.0.1:40179] INACTIVE
05:24:08.208 [nioEventLoopGroup-564-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf7520821, /127.0.0.1:56310 :> /127.0.0.1:40179] UNREGISTERED
05:24:08.208 [nioEventLoopGroup-574-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-574-1
05:24:08.208 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:08.209 [nioEventLoopGroup-564-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0f6a0cba, /127.0.0.1:56312 => /127.0.0.1:40179] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40179
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:08.209 [nioEventLoopGroup-564-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
05:24:08.210 [nioEventLoopGroup-564-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0f6a0cba, /127.0.0.1:56312 => /127.0.0.1:40179] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:08.210 [nioEventLoopGroup-564-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0f6a0cba, /127.0.0.1:56312 => /127.0.0.1:40179] FLUSH
05:24:08.210 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:08.210 [nioEventLoopGroup-564-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0f6a0cba, /127.0.0.1:56312 => /127.0.0.1:40179] FLUSH
05:24:08.210 [nioEventLoopGroup-564-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0f6a0cba, /127.0.0.1:56312 :> /127.0.0.1:40179] INACTIVE
05:24:08.210 [nioEventLoopGroup-564-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0f6a0cba, /127.0.0.1:56312 :> /127.0.0.1:40179] UNREGISTERED
05:24:08.210 [nioEventLoopGroup-575-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-575-1
05:24:08.210 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:08.211 [nioEventLoopGroup-564-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x530ad47f, /127.0.0.1:56314 => /127.0.0.1:40179] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40179
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:08.212 [nioEventLoopGroup-564-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
05:24:08.212 [nioEventLoopGroup-564-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x530ad47f, /127.0.0.1:56314 => /127.0.0.1:40179] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:08.212 [nioEventLoopGroup-564-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x530ad47f, /127.0.0.1:56314 => /127.0.0.1:40179] FLUSH
05:24:08.212 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:08.212 [nioEventLoopGroup-564-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x530ad47f, /127.0.0.1:56314 => /127.0.0.1:40179] FLUSH
05:24:08.212 [nioEventLoopGroup-564-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x530ad47f, /127.0.0.1:56314 :> /127.0.0.1:40179] INACTIVE
05:24:08.212 [nioEventLoopGroup-564-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x530ad47f, /127.0.0.1:56314 :> /127.0.0.1:40179] UNREGISTERED
05:24:08.212 [nioEventLoopGroup-576-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-576-1
05:24:08.213 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:08.214 [nioEventLoopGroup-564-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb0c314ad, /127.0.0.1:56316 => /127.0.0.1:40179] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40179
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:08.214 [nioEventLoopGroup-564-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:08.214 [nioEventLoopGroup-564-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb0c314ad, /127.0.0.1:56316 => /127.0.0.1:40179] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:08.214 [nioEventLoopGroup-564-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb0c314ad, /127.0.0.1:56316 => /127.0.0.1:40179] FLUSH
05:24:08.214 [nioEventLoopGroup-564-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb0c314ad, /127.0.0.1:56316 => /127.0.0.1:40179] FLUSH
05:24:08.214 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:08.214 [nioEventLoopGroup-564-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb0c314ad, /127.0.0.1:56316 :> /127.0.0.1:40179] INACTIVE
05:24:08.214 [nioEventLoopGroup-564-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb0c314ad, /127.0.0.1:56316 :> /127.0.0.1:40179] UNREGISTERED
05:24:08.214 [nioEventLoopGroup-577-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-577-1
05:24:08.216 [nioEventLoopGroup-564-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8fda2779, /127.0.0.1:56318 => /127.0.0.1:40179] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /foo?alpha=bravo HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_102
Host: localhost:40179
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Cookie: biscuit=wafer
Content-Length: 0, 0B
05:24:08.216 [nioEventLoopGroup-564-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ],
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:40179" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:08.216 [nioEventLoopGroup-564-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ],
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:40179" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
05:24:08.217 [nioEventLoopGroup-564-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ],
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:40179" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
05:24:08.217 [nioEventLoopGroup-564-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8fda2779, /127.0.0.1:56318 => /127.0.0.1:40179] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 113, cap: 113/113))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 113
Connection: keep-alive, 113B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e |o miss -->Testin|
|00000060| 67 20 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c |g B</body></html|
|00000070| 3e |> |
+--------+-------------------------------------------------+----------------+
05:24:08.217 [nioEventLoopGroup-564-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8fda2779, /127.0.0.1:56318 => /127.0.0.1:40179] FLUSH
05:24:08.218 [nioEventLoopGroup-564-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8fda2779, /127.0.0.1:56318 => /127.0.0.1:40179] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /foo?alpha=bravo HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_102
Host: localhost:40179
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Cookie: biscuit=wafer
Content-Length: 0, 0B
05:24:08.218 [nioEventLoopGroup-564-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ],
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:40179" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:08.218 [nioEventLoopGroup-564-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ],
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:40179" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
05:24:08.219 [nioEventLoopGroup-564-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ],
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:40179" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
05:24:08.219 [nioEventLoopGroup-564-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8fda2779, /127.0.0.1:56318 => /127.0.0.1:40179] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 113, cap: 113/113))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 113
Connection: keep-alive, 113B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e |o miss -->Testin|
|00000060| 67 20 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c |g B</body></html|
|00000070| 3e |> |
+--------+-------------------------------------------------+----------------+
05:24:08.219 [nioEventLoopGroup-564-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8fda2779, /127.0.0.1:56318 => /127.0.0.1:40179] FLUSH
05:24:08.219 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
05:24:08.220 [nioEventLoopGroup-564-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf9fc60df, /127.0.0.1:56320 => /127.0.0.1:40179] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:40179
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
05:24:08.221 [nioEventLoopGroup-564-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf9fc60df, /127.0.0.1:56320 => /127.0.0.1:40179] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:08.221 [nioEventLoopGroup-564-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf9fc60df, /127.0.0.1:56320 => /127.0.0.1:40179] FLUSH
05:24:08.221 [nioEventLoopGroup-564-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf9fc60df, /127.0.0.1:56320 => /127.0.0.1:40179] CLOSE()
05:24:08.221 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:08.221 [nioEventLoopGroup-578-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-578-1
05:24:08.222 [nioEventLoopGroup-564-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-1
05:24:08.222 [nioEventLoopGroup-564-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-2
05:24:08.222 [nioEventLoopGroup-564-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-4
05:24:08.222 [nioEventLoopGroup-564-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-6
05:24:08.222 [nioEventLoopGroup-564-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-8
05:24:08.222 [nioEventLoopGroup-564-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-11
05:24:08.222 [nioEventLoopGroup-564-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-3
05:24:08.222 [nioEventLoopGroup-564-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8fda2779, /127.0.0.1:56318 :> /127.0.0.1:40179] INACTIVE
05:24:08.222 [nioEventLoopGroup-564-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-10
05:24:08.222 [nioEventLoopGroup-564-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-7
05:24:08.222 [nioEventLoopGroup-564-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-9
05:24:08.222 [nioEventLoopGroup-564-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-12
05:24:08.222 [nioEventLoopGroup-564-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-13
05:24:08.222 [nioEventLoopGroup-564-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8fda2779, /127.0.0.1:56318 :> /127.0.0.1:40179] UNREGISTERED
05:24:08.222 [nioEventLoopGroup-564-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-5
05:24:08.327 [nioEventLoopGroup-548-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x02c3cb7b, /127.0.0.1:47080 :> /127.0.0.1:37069] FLUSH
05:24:08.327 [nioEventLoopGroup-548-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x02c3cb7b, /127.0.0.1:47080 :> /127.0.0.1:37069] INACTIVE
05:24:08.327 [nioEventLoopGroup-548-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x02c3cb7b, /127.0.0.1:47080 :> /127.0.0.1:37069] UNREGISTERED
05:24:08.327 [nioEventLoopGroup-548-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-16
05:24:08.429 [nioEventLoopGroup-532-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-14
05:24:08.575 [MockServer thread for port: 38997] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 38997
05:24:08.575 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:08.576 [nioEventLoopGroup-580-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe943b8e0, /127.0.0.1:33314 => /127.0.0.1:38997] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38997
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:08.577 [nioEventLoopGroup-580-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:08.577 [nioEventLoopGroup-580-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe943b8e0, /127.0.0.1:33314 => /127.0.0.1:38997] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:08.577 [nioEventLoopGroup-580-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe943b8e0, /127.0.0.1:33314 => /127.0.0.1:38997] FLUSH
05:24:08.577 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:08.577 [nioEventLoopGroup-580-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe943b8e0, /127.0.0.1:33314 => /127.0.0.1:38997] FLUSH
05:24:08.577 [nioEventLoopGroup-580-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe943b8e0, /127.0.0.1:33314 :> /127.0.0.1:38997] INACTIVE
05:24:08.577 [nioEventLoopGroup-580-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe943b8e0, /127.0.0.1:33314 :> /127.0.0.1:38997] UNREGISTERED
05:24:08.577 [nioEventLoopGroup-581-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-581-1
05:24:08.578 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:08.579 [nioEventLoopGroup-580-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x137dcfd4, /127.0.0.1:33316 => /127.0.0.1:38997] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38997
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:08.579 [nioEventLoopGroup-580-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
05:24:08.579 [nioEventLoopGroup-580-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x137dcfd4, /127.0.0.1:33316 => /127.0.0.1:38997] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:08.579 [nioEventLoopGroup-580-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x137dcfd4, /127.0.0.1:33316 => /127.0.0.1:38997] FLUSH
05:24:08.580 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:08.580 [nioEventLoopGroup-580-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x137dcfd4, /127.0.0.1:33316 => /127.0.0.1:38997] FLUSH
05:24:08.580 [nioEventLoopGroup-580-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x137dcfd4, /127.0.0.1:33316 :> /127.0.0.1:38997] INACTIVE
05:24:08.580 [nioEventLoopGroup-580-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x137dcfd4, /127.0.0.1:33316 :> /127.0.0.1:38997] UNREGISTERED
05:24:08.580 [nioEventLoopGroup-582-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-582-1
05:24:08.580 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:08.581 [nioEventLoopGroup-580-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4c27ed65, /127.0.0.1:33318 => /127.0.0.1:38997] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38997
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:08.582 [nioEventLoopGroup-580-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
05:24:08.582 [nioEventLoopGroup-580-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4c27ed65, /127.0.0.1:33318 => /127.0.0.1:38997] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:08.582 [nioEventLoopGroup-580-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4c27ed65, /127.0.0.1:33318 => /127.0.0.1:38997] FLUSH
05:24:08.582 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:08.582 [nioEventLoopGroup-580-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4c27ed65, /127.0.0.1:33318 => /127.0.0.1:38997] FLUSH
05:24:08.582 [nioEventLoopGroup-580-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4c27ed65, /127.0.0.1:33318 :> /127.0.0.1:38997] INACTIVE
05:24:08.582 [nioEventLoopGroup-580-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4c27ed65, /127.0.0.1:33318 :> /127.0.0.1:38997] UNREGISTERED
05:24:08.582 [nioEventLoopGroup-583-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-583-1
05:24:08.582 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:08.584 [nioEventLoopGroup-580-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0eff0ae2, /127.0.0.1:33320 => /127.0.0.1:38997] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38997
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:08.584 [nioEventLoopGroup-580-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:08.584 [nioEventLoopGroup-580-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0eff0ae2, /127.0.0.1:33320 => /127.0.0.1:38997] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:08.584 [nioEventLoopGroup-580-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0eff0ae2, /127.0.0.1:33320 => /127.0.0.1:38997] FLUSH
05:24:08.584 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:08.584 [nioEventLoopGroup-580-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0eff0ae2, /127.0.0.1:33320 => /127.0.0.1:38997] FLUSH
05:24:08.584 [nioEventLoopGroup-580-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0eff0ae2, /127.0.0.1:33320 :> /127.0.0.1:38997] INACTIVE
05:24:08.584 [nioEventLoopGroup-580-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0eff0ae2, /127.0.0.1:33320 :> /127.0.0.1:38997] UNREGISTERED
05:24:08.584 [nioEventLoopGroup-584-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-584-1
05:24:08.585 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:08.586 [nioEventLoopGroup-580-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c3aa890, /127.0.0.1:33322 => /127.0.0.1:38997] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38997
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
05:24:08.586 [nioEventLoopGroup-580-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
05:24:08.586 [nioEventLoopGroup-580-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c3aa890, /127.0.0.1:33322 => /127.0.0.1:38997] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:08.586 [nioEventLoopGroup-580-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c3aa890, /127.0.0.1:33322 => /127.0.0.1:38997] FLUSH
05:24:08.587 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:08.587 [nioEventLoopGroup-580-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c3aa890, /127.0.0.1:33322 => /127.0.0.1:38997] FLUSH
05:24:08.587 [nioEventLoopGroup-580-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c3aa890, /127.0.0.1:33322 :> /127.0.0.1:38997] INACTIVE
05:24:08.587 [nioEventLoopGroup-580-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c3aa890, /127.0.0.1:33322 :> /127.0.0.1:38997] UNREGISTERED
05:24:08.587 [nioEventLoopGroup-585-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-585-1
05:24:08.587 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:08.588 [nioEventLoopGroup-580-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x724cba81, /127.0.0.1:33324 => /127.0.0.1:38997] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38997
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
05:24:08.589 [nioEventLoopGroup-580-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
05:24:08.589 [nioEventLoopGroup-580-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x724cba81, /127.0.0.1:33324 => /127.0.0.1:38997] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:08.589 [nioEventLoopGroup-580-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x724cba81, /127.0.0.1:33324 => /127.0.0.1:38997] FLUSH
05:24:08.589 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:08.589 [nioEventLoopGroup-580-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x724cba81, /127.0.0.1:33324 => /127.0.0.1:38997] FLUSH
05:24:08.589 [nioEventLoopGroup-580-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x724cba81, /127.0.0.1:33324 :> /127.0.0.1:38997] INACTIVE
05:24:08.589 [nioEventLoopGroup-580-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x724cba81, /127.0.0.1:33324 :> /127.0.0.1:38997] UNREGISTERED
05:24:08.589 [nioEventLoopGroup-586-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-586-1
05:24:08.595 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:08.596 [nioEventLoopGroup-580-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x38c648e4, /127.0.0.1:33326 => /127.0.0.1:38997] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38997
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:08.596 [nioEventLoopGroup-580-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
05:24:08.596 [nioEventLoopGroup-580-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x38c648e4, /127.0.0.1:33326 => /127.0.0.1:38997] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:08.596 [nioEventLoopGroup-580-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x38c648e4, /127.0.0.1:33326 => /127.0.0.1:38997] FLUSH
05:24:08.597 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:08.597 [nioEventLoopGroup-580-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x38c648e4, /127.0.0.1:33326 => /127.0.0.1:38997] FLUSH
05:24:08.597 [nioEventLoopGroup-587-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-587-1
05:24:08.597 [nioEventLoopGroup-580-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x38c648e4, /127.0.0.1:33326 :> /127.0.0.1:38997] INACTIVE
05:24:08.597 [nioEventLoopGroup-580-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x38c648e4, /127.0.0.1:33326 :> /127.0.0.1:38997] UNREGISTERED
05:24:08.597 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:08.599 [nioEventLoopGroup-580-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x122c3d53, /127.0.0.1:33328 => /127.0.0.1:38997] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38997
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:08.599 [nioEventLoopGroup-580-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
05:24:08.599 [nioEventLoopGroup-580-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x122c3d53, /127.0.0.1:33328 => /127.0.0.1:38997] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:08.599 [nioEventLoopGroup-580-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x122c3d53, /127.0.0.1:33328 => /127.0.0.1:38997] FLUSH
05:24:08.599 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:08.599 [nioEventLoopGroup-580-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x122c3d53, /127.0.0.1:33328 => /127.0.0.1:38997] FLUSH
05:24:08.599 [nioEventLoopGroup-580-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x122c3d53, /127.0.0.1:33328 :> /127.0.0.1:38997] INACTIVE
05:24:08.599 [nioEventLoopGroup-580-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x122c3d53, /127.0.0.1:33328 :> /127.0.0.1:38997] UNREGISTERED
05:24:08.599 [nioEventLoopGroup-588-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-588-1
05:24:08.600 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:08.601 [nioEventLoopGroup-580-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4af085dc, /127.0.0.1:33330 => /127.0.0.1:38997] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38997
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:08.601 [nioEventLoopGroup-580-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
05:24:08.601 [nioEventLoopGroup-580-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4af085dc, /127.0.0.1:33330 => /127.0.0.1:38997] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:08.601 [nioEventLoopGroup-580-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4af085dc, /127.0.0.1:33330 => /127.0.0.1:38997] FLUSH
05:24:08.601 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:08.602 [nioEventLoopGroup-580-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4af085dc, /127.0.0.1:33330 => /127.0.0.1:38997] FLUSH
05:24:08.602 [nioEventLoopGroup-580-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4af085dc, /127.0.0.1:33330 :> /127.0.0.1:38997] INACTIVE
05:24:08.602 [nioEventLoopGroup-589-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-589-1
05:24:08.602 [nioEventLoopGroup-580-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4af085dc, /127.0.0.1:33330 :> /127.0.0.1:38997] UNREGISTERED
05:24:08.602 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:08.603 [nioEventLoopGroup-580-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x558c17e6, /127.0.0.1:33332 => /127.0.0.1:38997] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38997
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:08.604 [nioEventLoopGroup-580-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
05:24:08.604 [nioEventLoopGroup-580-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x558c17e6, /127.0.0.1:33332 => /127.0.0.1:38997] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:08.604 [nioEventLoopGroup-580-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x558c17e6, /127.0.0.1:33332 => /127.0.0.1:38997] FLUSH
05:24:08.604 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:08.604 [nioEventLoopGroup-580-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x558c17e6, /127.0.0.1:33332 => /127.0.0.1:38997] FLUSH
05:24:08.604 [nioEventLoopGroup-580-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x558c17e6, /127.0.0.1:33332 :> /127.0.0.1:38997] INACTIVE
05:24:08.604 [nioEventLoopGroup-590-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-590-1
05:24:08.604 [nioEventLoopGroup-580-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x558c17e6, /127.0.0.1:33332 :> /127.0.0.1:38997] UNREGISTERED
05:24:08.604 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:08.605 [nioEventLoopGroup-580-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2b2c01c, /127.0.0.1:33334 => /127.0.0.1:38997] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38997
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:08.606 [nioEventLoopGroup-580-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
05:24:08.606 [nioEventLoopGroup-580-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2b2c01c, /127.0.0.1:33334 => /127.0.0.1:38997] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:08.606 [nioEventLoopGroup-580-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2b2c01c, /127.0.0.1:33334 => /127.0.0.1:38997] FLUSH
05:24:08.610 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:08.610 [nioEventLoopGroup-580-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2b2c01c, /127.0.0.1:33334 => /127.0.0.1:38997] FLUSH
05:24:08.611 [nioEventLoopGroup-580-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2b2c01c, /127.0.0.1:33334 :> /127.0.0.1:38997] INACTIVE
05:24:08.611 [nioEventLoopGroup-591-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-591-1
05:24:08.611 [nioEventLoopGroup-580-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2b2c01c, /127.0.0.1:33334 :> /127.0.0.1:38997] UNREGISTERED
05:24:08.611 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:08.612 [nioEventLoopGroup-580-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4dfee204, /127.0.0.1:33336 => /127.0.0.1:38997] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38997
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:08.613 [nioEventLoopGroup-580-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
05:24:08.613 [nioEventLoopGroup-580-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4dfee204, /127.0.0.1:33336 => /127.0.0.1:38997] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:08.613 [nioEventLoopGroup-580-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4dfee204, /127.0.0.1:33336 => /127.0.0.1:38997] FLUSH
05:24:08.613 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:08.614 [nioEventLoopGroup-580-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4dfee204, /127.0.0.1:33336 => /127.0.0.1:38997] FLUSH
05:24:08.614 [nioEventLoopGroup-592-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-592-1
05:24:08.614 [nioEventLoopGroup-580-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4dfee204, /127.0.0.1:33336 :> /127.0.0.1:38997] INACTIVE
05:24:08.614 [nioEventLoopGroup-580-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4dfee204, /127.0.0.1:33336 :> /127.0.0.1:38997] UNREGISTERED
05:24:08.614 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:08.615 [nioEventLoopGroup-580-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3e0aa0ea, /127.0.0.1:33338 => /127.0.0.1:38997] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38997
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:08.616 [nioEventLoopGroup-580-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:08.616 [nioEventLoopGroup-580-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3e0aa0ea, /127.0.0.1:33338 => /127.0.0.1:38997] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:08.616 [nioEventLoopGroup-580-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3e0aa0ea, /127.0.0.1:33338 => /127.0.0.1:38997] FLUSH
05:24:08.616 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:08.616 [nioEventLoopGroup-580-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3e0aa0ea, /127.0.0.1:33338 => /127.0.0.1:38997] FLUSH
05:24:08.616 [nioEventLoopGroup-580-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3e0aa0ea, /127.0.0.1:33338 :> /127.0.0.1:38997] INACTIVE
05:24:08.616 [nioEventLoopGroup-580-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3e0aa0ea, /127.0.0.1:33338 :> /127.0.0.1:38997] UNREGISTERED
05:24:08.616 [nioEventLoopGroup-593-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-593-1
05:24:08.627 [nioEventLoopGroup-580-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc673548, /127.0.0.1:33340 => /127.0.0.1:38997] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /basic HTTP/1.1
Host: localhost:38997
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_102)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
05:24:08.627 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:08.627 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:08.627 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:24:08.627 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:08.627 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:08.628 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:08.628 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:08.628 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:08.628 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:08.628 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:08.628 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status500"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:08.628 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
}
05:24:08.629 [nioEventLoopGroup-580-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
for request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:24:08.629 [nioEventLoopGroup-580-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc673548, /127.0.0.1:33340 => /127.0.0.1:38997] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 401 Unauthorized
WWW-Authenticate: Basic realm="Test Realm"
Content-Length: 0
Connection: keep-alive, 0B
05:24:08.629 [nioEventLoopGroup-580-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc673548, /127.0.0.1:33340 => /127.0.0.1:38997] FLUSH
05:24:08.639 [nioEventLoopGroup-580-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc673548, /127.0.0.1:33340 => /127.0.0.1:38997] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /basic HTTP/1.1
Host: localhost:38997
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_102)
Accept-Encoding: gzip,deflate
Authorization: Basic YWRtaW46JDNjcjN0
Content-Length: 0, 0B
05:24:08.640 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:08.640 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:08.640 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:24:08.640 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:08.640 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:08.640 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:08.640 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:08.641 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:08.641 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:08.641 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:08.641 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status500"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:08.641 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
}
because:
method matches = true
path matches = true
query string parameters match = true
body matches = true
headers match = false
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:08.641 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
}
05:24:08.642 [nioEventLoopGroup-580-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:24:08.642 [nioEventLoopGroup-580-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc673548, /127.0.0.1:33340 => /127.0.0.1:38997] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 119, cap: 119/119))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 119
Connection: keep-alive, 119B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e |o miss -->Nothin|
|00000060| 67 20 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e |g special</body>|
|00000070| 3c 2f 68 74 6d 6c 3e |</html> |
+--------+-------------------------------------------------+----------------+
05:24:08.642 [nioEventLoopGroup-580-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc673548, /127.0.0.1:33340 => /127.0.0.1:38997] FLUSH
05:24:08.649 [nioEventLoopGroup-580-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc250bcdb, /127.0.0.1:33342 => /127.0.0.1:38997] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /basic HTTP/1.1
Host: localhost:38997
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_102)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
05:24:08.650 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:08.650 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:08.650 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:24:08.650 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:08.651 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:08.651 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:08.651 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:08.651 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:08.651 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:08.651 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:08.652 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status500"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:08.652 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
}
05:24:08.652 [nioEventLoopGroup-580-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
for request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:24:08.652 [nioEventLoopGroup-580-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc250bcdb, /127.0.0.1:33342 => /127.0.0.1:38997] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 401 Unauthorized
WWW-Authenticate: Basic realm="Test Realm"
Content-Length: 0
Connection: keep-alive, 0B
05:24:08.652 [nioEventLoopGroup-580-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc250bcdb, /127.0.0.1:33342 => /127.0.0.1:38997] FLUSH
05:24:08.653 [nioEventLoopGroup-580-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc250bcdb, /127.0.0.1:33342 => /127.0.0.1:38997] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /basic HTTP/1.1
Host: localhost:38997
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_102)
Accept-Encoding: gzip,deflate
Authorization: Basic YWRtaW46JDNjcjN0
Content-Length: 0, 0B
05:24:08.653 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:08.653 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:08.654 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:24:08.654 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:08.654 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:08.654 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:08.654 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:08.655 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:08.655 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:08.655 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:08.655 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status500"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:08.655 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
}
because:
method matches = true
path matches = true
query string parameters match = true
body matches = true
headers match = false
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:08.656 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
}
05:24:08.656 [nioEventLoopGroup-580-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38997" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:24:08.656 [nioEventLoopGroup-580-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc250bcdb, /127.0.0.1:33342 => /127.0.0.1:38997] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 119, cap: 119/119))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 119
Connection: keep-alive, 119B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e |o miss -->Nothin|
|00000060| 67 20 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e |g special</body>|
|00000070| 3c 2f 68 74 6d 6c 3e |</html> |
+--------+-------------------------------------------------+----------------+
05:24:08.656 [nioEventLoopGroup-580-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc250bcdb, /127.0.0.1:33342 => /127.0.0.1:38997] FLUSH
05:24:08.657 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
05:24:08.658 [nioEventLoopGroup-580-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b5b70f4, /127.0.0.1:33344 => /127.0.0.1:38997] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:38997
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
05:24:08.658 [nioEventLoopGroup-580-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b5b70f4, /127.0.0.1:33344 => /127.0.0.1:38997] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:08.658 [nioEventLoopGroup-580-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b5b70f4, /127.0.0.1:33344 => /127.0.0.1:38997] FLUSH
05:24:08.658 [nioEventLoopGroup-580-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b5b70f4, /127.0.0.1:33344 => /127.0.0.1:38997] CLOSE()
05:24:08.659 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:08.659 [nioEventLoopGroup-594-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-594-1
05:24:08.659 [nioEventLoopGroup-580-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-1
05:24:08.659 [nioEventLoopGroup-580-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-2
05:24:08.659 [nioEventLoopGroup-580-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-3
05:24:08.659 [nioEventLoopGroup-580-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-4
05:24:08.659 [nioEventLoopGroup-580-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-5
05:24:08.659 [nioEventLoopGroup-580-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-12
05:24:08.659 [nioEventLoopGroup-580-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-13
05:24:08.659 [nioEventLoopGroup-580-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-6
05:24:08.659 [nioEventLoopGroup-580-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-10
05:24:08.659 [nioEventLoopGroup-580-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc673548, /127.0.0.1:33340 :> /127.0.0.1:38997] INACTIVE
05:24:08.659 [nioEventLoopGroup-580-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-7
05:24:08.659 [nioEventLoopGroup-580-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-8
05:24:08.659 [nioEventLoopGroup-580-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-9
05:24:08.659 [nioEventLoopGroup-580-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc673548, /127.0.0.1:33340 :> /127.0.0.1:38997] UNREGISTERED
05:24:08.659 [nioEventLoopGroup-580-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-11
05:24:08.660 [nioEventLoopGroup-580-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc250bcdb, /127.0.0.1:33342 :> /127.0.0.1:38997] INACTIVE
05:24:08.660 [nioEventLoopGroup-580-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc250bcdb, /127.0.0.1:33342 :> /127.0.0.1:38997] UNREGISTERED
05:24:08.722 [nioEventLoopGroup-564-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf9fc60df, /127.0.0.1:56320 :> /127.0.0.1:40179] FLUSH
05:24:08.722 [nioEventLoopGroup-564-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf9fc60df, /127.0.0.1:56320 :> /127.0.0.1:40179] INACTIVE
05:24:08.722 [nioEventLoopGroup-564-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf9fc60df, /127.0.0.1:56320 :> /127.0.0.1:40179] UNREGISTERED
05:24:08.722 [nioEventLoopGroup-564-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-15
05:24:08.828 [nioEventLoopGroup-548-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-14
05:24:08.828 [nioEventLoopGroup-548-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-15
05:24:09.011 [MockServer thread for port: 35783] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 35783
05:24:09.011 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:09.012 [nioEventLoopGroup-596-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe1b50781, /127.0.0.1:33556 => /127.0.0.1:35783] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35783
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:09.013 [nioEventLoopGroup-596-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:09.013 [nioEventLoopGroup-596-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe1b50781, /127.0.0.1:33556 => /127.0.0.1:35783] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:09.013 [nioEventLoopGroup-596-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe1b50781, /127.0.0.1:33556 => /127.0.0.1:35783] FLUSH
05:24:09.013 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:09.013 [nioEventLoopGroup-596-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe1b50781, /127.0.0.1:33556 => /127.0.0.1:35783] FLUSH
05:24:09.013 [nioEventLoopGroup-596-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe1b50781, /127.0.0.1:33556 :> /127.0.0.1:35783] INACTIVE
05:24:09.013 [nioEventLoopGroup-597-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-597-1
05:24:09.013 [nioEventLoopGroup-596-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe1b50781, /127.0.0.1:33556 :> /127.0.0.1:35783] UNREGISTERED
05:24:09.014 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:09.015 [nioEventLoopGroup-596-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x17e74d07, /127.0.0.1:33558 => /127.0.0.1:35783] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35783
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:09.016 [nioEventLoopGroup-596-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
05:24:09.016 [nioEventLoopGroup-596-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x17e74d07, /127.0.0.1:33558 => /127.0.0.1:35783] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:09.016 [nioEventLoopGroup-596-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x17e74d07, /127.0.0.1:33558 => /127.0.0.1:35783] FLUSH
05:24:09.016 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:09.016 [nioEventLoopGroup-596-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x17e74d07, /127.0.0.1:33558 => /127.0.0.1:35783] FLUSH
05:24:09.016 [nioEventLoopGroup-598-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-598-1
05:24:09.016 [nioEventLoopGroup-596-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x17e74d07, /127.0.0.1:33558 :> /127.0.0.1:35783] INACTIVE
05:24:09.016 [nioEventLoopGroup-596-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x17e74d07, /127.0.0.1:33558 :> /127.0.0.1:35783] UNREGISTERED
05:24:09.018 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:09.019 [nioEventLoopGroup-596-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98f39877, /127.0.0.1:33560 => /127.0.0.1:35783] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35783
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:09.020 [nioEventLoopGroup-596-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
05:24:09.020 [nioEventLoopGroup-596-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98f39877, /127.0.0.1:33560 => /127.0.0.1:35783] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:09.020 [nioEventLoopGroup-596-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98f39877, /127.0.0.1:33560 => /127.0.0.1:35783] FLUSH
05:24:09.020 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:09.020 [nioEventLoopGroup-596-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98f39877, /127.0.0.1:33560 => /127.0.0.1:35783] FLUSH
05:24:09.020 [nioEventLoopGroup-596-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98f39877, /127.0.0.1:33560 :> /127.0.0.1:35783] INACTIVE
05:24:09.020 [nioEventLoopGroup-596-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98f39877, /127.0.0.1:33560 :> /127.0.0.1:35783] UNREGISTERED
05:24:09.020 [nioEventLoopGroup-599-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-599-1
05:24:09.021 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:09.022 [nioEventLoopGroup-596-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1d267b97, /127.0.0.1:33562 => /127.0.0.1:35783] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35783
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:09.022 [nioEventLoopGroup-596-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:09.022 [nioEventLoopGroup-596-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1d267b97, /127.0.0.1:33562 => /127.0.0.1:35783] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:09.022 [nioEventLoopGroup-596-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1d267b97, /127.0.0.1:33562 => /127.0.0.1:35783] FLUSH
05:24:09.022 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:09.023 [nioEventLoopGroup-596-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1d267b97, /127.0.0.1:33562 => /127.0.0.1:35783] FLUSH
05:24:09.023 [nioEventLoopGroup-596-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1d267b97, /127.0.0.1:33562 :> /127.0.0.1:35783] INACTIVE
05:24:09.023 [nioEventLoopGroup-596-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1d267b97, /127.0.0.1:33562 :> /127.0.0.1:35783] UNREGISTERED
05:24:09.023 [nioEventLoopGroup-600-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-600-1
05:24:09.023 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:09.024 [nioEventLoopGroup-596-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1bc33a77, /127.0.0.1:33564 => /127.0.0.1:35783] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35783
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
05:24:09.025 [nioEventLoopGroup-596-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
05:24:09.025 [nioEventLoopGroup-596-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1bc33a77, /127.0.0.1:33564 => /127.0.0.1:35783] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:09.025 [nioEventLoopGroup-596-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1bc33a77, /127.0.0.1:33564 => /127.0.0.1:35783] FLUSH
05:24:09.025 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:09.025 [nioEventLoopGroup-596-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1bc33a77, /127.0.0.1:33564 => /127.0.0.1:35783] FLUSH
05:24:09.025 [nioEventLoopGroup-596-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1bc33a77, /127.0.0.1:33564 :> /127.0.0.1:35783] INACTIVE
05:24:09.025 [nioEventLoopGroup-596-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1bc33a77, /127.0.0.1:33564 :> /127.0.0.1:35783] UNREGISTERED
05:24:09.025 [nioEventLoopGroup-601-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-601-1
05:24:09.051 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:09.052 [nioEventLoopGroup-596-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x840281ad, /127.0.0.1:33566 => /127.0.0.1:35783] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35783
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
05:24:09.053 [nioEventLoopGroup-596-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
05:24:09.053 [nioEventLoopGroup-596-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x840281ad, /127.0.0.1:33566 => /127.0.0.1:35783] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:09.053 [nioEventLoopGroup-596-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x840281ad, /127.0.0.1:33566 => /127.0.0.1:35783] FLUSH
05:24:09.053 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:09.053 [nioEventLoopGroup-596-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x840281ad, /127.0.0.1:33566 => /127.0.0.1:35783] FLUSH
05:24:09.053 [nioEventLoopGroup-596-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x840281ad, /127.0.0.1:33566 :> /127.0.0.1:35783] INACTIVE
05:24:09.053 [nioEventLoopGroup-602-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-602-1
05:24:09.053 [nioEventLoopGroup-596-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x840281ad, /127.0.0.1:33566 :> /127.0.0.1:35783] UNREGISTERED
05:24:09.054 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:09.055 [nioEventLoopGroup-596-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x67f5bcbc, /127.0.0.1:33568 => /127.0.0.1:35783] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35783
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:09.055 [nioEventLoopGroup-596-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
05:24:09.055 [nioEventLoopGroup-596-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x67f5bcbc, /127.0.0.1:33568 => /127.0.0.1:35783] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:09.055 [nioEventLoopGroup-596-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x67f5bcbc, /127.0.0.1:33568 => /127.0.0.1:35783] FLUSH
05:24:09.055 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:09.055 [nioEventLoopGroup-596-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x67f5bcbc, /127.0.0.1:33568 => /127.0.0.1:35783] FLUSH
05:24:09.056 [nioEventLoopGroup-596-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x67f5bcbc, /127.0.0.1:33568 :> /127.0.0.1:35783] INACTIVE
05:24:09.056 [nioEventLoopGroup-603-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-603-1
05:24:09.056 [nioEventLoopGroup-596-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x67f5bcbc, /127.0.0.1:33568 :> /127.0.0.1:35783] UNREGISTERED
05:24:09.056 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:09.057 [nioEventLoopGroup-596-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3b513a51, /127.0.0.1:33570 => /127.0.0.1:35783] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35783
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:09.057 [nioEventLoopGroup-596-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
05:24:09.057 [nioEventLoopGroup-596-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3b513a51, /127.0.0.1:33570 => /127.0.0.1:35783] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:09.057 [nioEventLoopGroup-596-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3b513a51, /127.0.0.1:33570 => /127.0.0.1:35783] FLUSH
05:24:09.057 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:09.057 [nioEventLoopGroup-596-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3b513a51, /127.0.0.1:33570 => /127.0.0.1:35783] FLUSH
05:24:09.057 [nioEventLoopGroup-604-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-604-1
05:24:09.057 [nioEventLoopGroup-596-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3b513a51, /127.0.0.1:33570 :> /127.0.0.1:35783] INACTIVE
05:24:09.058 [nioEventLoopGroup-596-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3b513a51, /127.0.0.1:33570 :> /127.0.0.1:35783] UNREGISTERED
05:24:09.058 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:09.059 [nioEventLoopGroup-596-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf9cbb576, /127.0.0.1:33572 => /127.0.0.1:35783] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35783
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:09.059 [nioEventLoopGroup-596-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
05:24:09.059 [nioEventLoopGroup-596-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf9cbb576, /127.0.0.1:33572 => /127.0.0.1:35783] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:09.060 [nioEventLoopGroup-596-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf9cbb576, /127.0.0.1:33572 => /127.0.0.1:35783] FLUSH
05:24:09.060 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:09.060 [nioEventLoopGroup-596-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf9cbb576, /127.0.0.1:33572 => /127.0.0.1:35783] FLUSH
05:24:09.060 [nioEventLoopGroup-605-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-605-1
05:24:09.060 [nioEventLoopGroup-596-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf9cbb576, /127.0.0.1:33572 :> /127.0.0.1:35783] INACTIVE
05:24:09.060 [nioEventLoopGroup-596-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf9cbb576, /127.0.0.1:33572 :> /127.0.0.1:35783] UNREGISTERED
05:24:09.060 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:09.061 [nioEventLoopGroup-596-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c9585fb, /127.0.0.1:33574 => /127.0.0.1:35783] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35783
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:09.061 [nioEventLoopGroup-596-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
05:24:09.061 [nioEventLoopGroup-596-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c9585fb, /127.0.0.1:33574 => /127.0.0.1:35783] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:09.061 [nioEventLoopGroup-596-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c9585fb, /127.0.0.1:33574 => /127.0.0.1:35783] FLUSH
05:24:09.062 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:09.062 [nioEventLoopGroup-596-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c9585fb, /127.0.0.1:33574 => /127.0.0.1:35783] FLUSH
05:24:09.062 [nioEventLoopGroup-596-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c9585fb, /127.0.0.1:33574 :> /127.0.0.1:35783] INACTIVE
05:24:09.062 [nioEventLoopGroup-596-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c9585fb, /127.0.0.1:33574 :> /127.0.0.1:35783] UNREGISTERED
05:24:09.062 [nioEventLoopGroup-606-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-606-1
05:24:09.062 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:09.063 [nioEventLoopGroup-596-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe4eb7796, /127.0.0.1:33576 => /127.0.0.1:35783] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35783
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:09.063 [nioEventLoopGroup-596-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
05:24:09.064 [nioEventLoopGroup-596-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe4eb7796, /127.0.0.1:33576 => /127.0.0.1:35783] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:09.064 [nioEventLoopGroup-596-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe4eb7796, /127.0.0.1:33576 => /127.0.0.1:35783] FLUSH
05:24:09.064 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:09.064 [nioEventLoopGroup-596-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe4eb7796, /127.0.0.1:33576 => /127.0.0.1:35783] FLUSH
05:24:09.064 [nioEventLoopGroup-596-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe4eb7796, /127.0.0.1:33576 :> /127.0.0.1:35783] INACTIVE
05:24:09.064 [nioEventLoopGroup-596-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe4eb7796, /127.0.0.1:33576 :> /127.0.0.1:35783] UNREGISTERED
05:24:09.064 [nioEventLoopGroup-607-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-607-1
05:24:09.064 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:09.065 [nioEventLoopGroup-596-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8e64668d, /127.0.0.1:33578 => /127.0.0.1:35783] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35783
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:09.066 [nioEventLoopGroup-596-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
05:24:09.066 [nioEventLoopGroup-596-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8e64668d, /127.0.0.1:33578 => /127.0.0.1:35783] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:09.066 [nioEventLoopGroup-596-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8e64668d, /127.0.0.1:33578 => /127.0.0.1:35783] FLUSH
05:24:09.066 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:09.066 [nioEventLoopGroup-596-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8e64668d, /127.0.0.1:33578 => /127.0.0.1:35783] FLUSH
05:24:09.066 [nioEventLoopGroup-596-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8e64668d, /127.0.0.1:33578 :> /127.0.0.1:35783] INACTIVE
05:24:09.066 [nioEventLoopGroup-596-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8e64668d, /127.0.0.1:33578 :> /127.0.0.1:35783] UNREGISTERED
05:24:09.066 [nioEventLoopGroup-608-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-608-1
05:24:09.066 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:09.067 [nioEventLoopGroup-596-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xee7111e9, /127.0.0.1:33580 => /127.0.0.1:35783] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35783
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:09.068 [nioEventLoopGroup-596-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:09.068 [nioEventLoopGroup-596-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xee7111e9, /127.0.0.1:33580 => /127.0.0.1:35783] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:09.068 [nioEventLoopGroup-596-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xee7111e9, /127.0.0.1:33580 => /127.0.0.1:35783] FLUSH
05:24:09.068 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:09.068 [nioEventLoopGroup-596-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xee7111e9, /127.0.0.1:33580 => /127.0.0.1:35783] FLUSH
05:24:09.068 [nioEventLoopGroup-596-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xee7111e9, /127.0.0.1:33580 :> /127.0.0.1:35783] INACTIVE
05:24:09.068 [nioEventLoopGroup-596-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xee7111e9, /127.0.0.1:33580 :> /127.0.0.1:35783] UNREGISTERED
05:24:09.068 [nioEventLoopGroup-609-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-609-1
05:24:09.069 [nioEventLoopGroup-596-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c6b6683, /127.0.0.1:33582 => /127.0.0.1:35783] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /basic HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_102
Host: localhost:35783
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
05:24:09.070 [nioEventLoopGroup-596-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:35783" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:09.070 [nioEventLoopGroup-596-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:35783" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:09.070 [nioEventLoopGroup-596-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:35783" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:24:09.070 [nioEventLoopGroup-596-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:35783" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:09.070 [nioEventLoopGroup-596-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:35783" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:09.070 [nioEventLoopGroup-596-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:35783" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:09.070 [nioEventLoopGroup-596-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:35783" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:09.070 [nioEventLoopGroup-596-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:35783" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:09.071 [nioEventLoopGroup-596-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:35783" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:09.071 [nioEventLoopGroup-596-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:35783" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:09.071 [nioEventLoopGroup-596-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:35783" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status500"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:09.071 [nioEventLoopGroup-596-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:35783" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
}
05:24:09.071 [nioEventLoopGroup-596-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
for request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:35783" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:24:09.071 [nioEventLoopGroup-596-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c6b6683, /127.0.0.1:33582 => /127.0.0.1:35783] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 401 Unauthorized
WWW-Authenticate: Basic realm="Test Realm"
Content-Length: 0
Connection: keep-alive, 0B
05:24:09.071 [nioEventLoopGroup-596-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c6b6683, /127.0.0.1:33582 => /127.0.0.1:35783] FLUSH
05:24:09.074 [nioEventLoopGroup-596-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c6b6683, /127.0.0.1:33582 => /127.0.0.1:35783] FLUSH
05:24:09.074 [nioEventLoopGroup-596-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c6b6683, /127.0.0.1:33582 :> /127.0.0.1:35783] INACTIVE
05:24:09.074 [nioEventLoopGroup-596-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c6b6683, /127.0.0.1:33582 :> /127.0.0.1:35783] UNREGISTERED
05:24:09.075 [nioEventLoopGroup-596-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b16ab68, /127.0.0.1:33584 => /127.0.0.1:35783] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /basic HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_102
Host: localhost:35783
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Authorization: Basic YWRtaW46JDNjcjN0
Content-Length: 0, 0B
05:24:09.075 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:35783" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:09.075 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:35783" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:09.075 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:35783" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:24:09.075 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:35783" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:09.075 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:35783" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:09.076 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:35783" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:09.076 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:35783" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:09.076 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:35783" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:09.076 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:35783" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:09.076 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:35783" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:09.076 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:35783" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status500"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:09.076 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:35783" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
}
because:
method matches = true
path matches = true
query string parameters match = true
body matches = true
headers match = false
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:09.077 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:35783" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
}
05:24:09.077 [nioEventLoopGroup-596-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:35783" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:24:09.077 [nioEventLoopGroup-596-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b16ab68, /127.0.0.1:33584 => /127.0.0.1:35783] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 119, cap: 119/119))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 119
Connection: keep-alive, 119B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e |o miss -->Nothin|
|00000060| 67 20 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e |g special</body>|
|00000070| 3c 2f 68 74 6d 6c 3e |</html> |
+--------+-------------------------------------------------+----------------+
05:24:09.077 [nioEventLoopGroup-596-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b16ab68, /127.0.0.1:33584 => /127.0.0.1:35783] FLUSH
05:24:09.078 [nioEventLoopGroup-596-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b16ab68, /127.0.0.1:33584 => /127.0.0.1:35783] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /basic HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_102
Host: localhost:35783
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Authorization: Basic YWRtaW46JDNjcjN0
Content-Length: 0, 0B
05:24:09.079 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:35783" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:09.079 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:35783" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:09.079 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:35783" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:24:09.079 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:35783" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:09.080 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:35783" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:09.080 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:35783" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:09.080 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:35783" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:09.080 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:35783" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:09.080 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:35783" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:09.080 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:35783" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:09.080 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:35783" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status500"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:09.081 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:35783" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
}
because:
method matches = true
path matches = true
query string parameters match = true
body matches = true
headers match = false
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:09.081 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:35783" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
}
05:24:09.081 [nioEventLoopGroup-596-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:35783" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:24:09.081 [nioEventLoopGroup-596-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b16ab68, /127.0.0.1:33584 => /127.0.0.1:35783] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 119, cap: 119/119))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 119
Connection: keep-alive, 119B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e |o miss -->Nothin|
|00000060| 67 20 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e |g special</body>|
|00000070| 3c 2f 68 74 6d 6c 3e |</html> |
+--------+-------------------------------------------------+----------------+
05:24:09.081 [nioEventLoopGroup-596-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b16ab68, /127.0.0.1:33584 => /127.0.0.1:35783] FLUSH
05:24:09.082 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
05:24:09.083 [nioEventLoopGroup-596-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7919bf68, /127.0.0.1:33586 => /127.0.0.1:35783] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:35783
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
05:24:09.083 [nioEventLoopGroup-596-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7919bf68, /127.0.0.1:33586 => /127.0.0.1:35783] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:09.083 [nioEventLoopGroup-596-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7919bf68, /127.0.0.1:33586 => /127.0.0.1:35783] FLUSH
05:24:09.083 [nioEventLoopGroup-596-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7919bf68, /127.0.0.1:33586 => /127.0.0.1:35783] CLOSE()
05:24:09.083 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:09.083 [nioEventLoopGroup-610-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-610-1
05:24:09.084 [nioEventLoopGroup-596-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-3
05:24:09.084 [nioEventLoopGroup-596-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-2
05:24:09.084 [nioEventLoopGroup-596-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-10
05:24:09.084 [nioEventLoopGroup-596-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-8
05:24:09.084 [nioEventLoopGroup-596-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-9
05:24:09.084 [nioEventLoopGroup-596-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-5
05:24:09.084 [nioEventLoopGroup-596-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b16ab68, /127.0.0.1:33584 :> /127.0.0.1:35783] INACTIVE
05:24:09.084 [nioEventLoopGroup-596-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-11
05:24:09.084 [nioEventLoopGroup-596-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-14
05:24:09.084 [nioEventLoopGroup-596-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-13
05:24:09.084 [nioEventLoopGroup-596-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b16ab68, /127.0.0.1:33584 :> /127.0.0.1:35783] UNREGISTERED
05:24:09.084 [nioEventLoopGroup-596-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-4
05:24:09.084 [nioEventLoopGroup-596-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-6
05:24:09.084 [nioEventLoopGroup-596-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-7
05:24:09.085 [nioEventLoopGroup-596-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-1
05:24:09.085 [nioEventLoopGroup-596-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-12
05:24:09.159 [nioEventLoopGroup-580-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b5b70f4, /127.0.0.1:33344 :> /127.0.0.1:38997] FLUSH
05:24:09.159 [nioEventLoopGroup-580-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b5b70f4, /127.0.0.1:33344 :> /127.0.0.1:38997] INACTIVE
05:24:09.159 [nioEventLoopGroup-580-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b5b70f4, /127.0.0.1:33344 :> /127.0.0.1:38997] UNREGISTERED
05:24:09.159 [nioEventLoopGroup-580-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-16
05:24:09.223 [nioEventLoopGroup-564-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-14
05:24:09.435 [MockServer thread for port: 34413] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 34413
05:24:09.435 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:09.437 [nioEventLoopGroup-612-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12faf3ec, /127.0.0.1:44954 => /127.0.0.1:34413] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34413
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:09.437 [nioEventLoopGroup-612-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:09.437 [nioEventLoopGroup-612-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12faf3ec, /127.0.0.1:44954 => /127.0.0.1:34413] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:09.437 [nioEventLoopGroup-612-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12faf3ec, /127.0.0.1:44954 => /127.0.0.1:34413] FLUSH
05:24:09.437 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:09.437 [nioEventLoopGroup-612-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12faf3ec, /127.0.0.1:44954 => /127.0.0.1:34413] FLUSH
05:24:09.437 [nioEventLoopGroup-612-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12faf3ec, /127.0.0.1:44954 :> /127.0.0.1:34413] INACTIVE
05:24:09.437 [nioEventLoopGroup-612-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12faf3ec, /127.0.0.1:44954 :> /127.0.0.1:34413] UNREGISTERED
05:24:09.437 [nioEventLoopGroup-613-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-613-1
05:24:09.438 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:09.439 [nioEventLoopGroup-612-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6294f35, /127.0.0.1:44956 => /127.0.0.1:34413] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34413
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:09.440 [nioEventLoopGroup-612-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
05:24:09.440 [nioEventLoopGroup-612-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6294f35, /127.0.0.1:44956 => /127.0.0.1:34413] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:09.440 [nioEventLoopGroup-612-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6294f35, /127.0.0.1:44956 => /127.0.0.1:34413] FLUSH
05:24:09.440 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:09.440 [nioEventLoopGroup-612-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6294f35, /127.0.0.1:44956 => /127.0.0.1:34413] FLUSH
05:24:09.440 [nioEventLoopGroup-612-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6294f35, /127.0.0.1:44956 :> /127.0.0.1:34413] INACTIVE
05:24:09.440 [nioEventLoopGroup-614-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-614-1
05:24:09.440 [nioEventLoopGroup-612-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6294f35, /127.0.0.1:44956 :> /127.0.0.1:34413] UNREGISTERED
05:24:09.441 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:09.442 [nioEventLoopGroup-612-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x91f042f4, /127.0.0.1:44958 => /127.0.0.1:34413] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34413
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:09.443 [nioEventLoopGroup-612-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
05:24:09.443 [nioEventLoopGroup-612-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x91f042f4, /127.0.0.1:44958 => /127.0.0.1:34413] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:09.443 [nioEventLoopGroup-612-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x91f042f4, /127.0.0.1:44958 => /127.0.0.1:34413] FLUSH
05:24:09.443 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:09.443 [nioEventLoopGroup-612-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x91f042f4, /127.0.0.1:44958 => /127.0.0.1:34413] FLUSH
05:24:09.443 [nioEventLoopGroup-612-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x91f042f4, /127.0.0.1:44958 :> /127.0.0.1:34413] INACTIVE
05:24:09.443 [nioEventLoopGroup-612-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x91f042f4, /127.0.0.1:44958 :> /127.0.0.1:34413] UNREGISTERED
05:24:09.443 [nioEventLoopGroup-615-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-615-1
05:24:09.443 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:09.444 [nioEventLoopGroup-612-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x113a5aad, /127.0.0.1:44960 => /127.0.0.1:34413] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34413
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:09.445 [nioEventLoopGroup-612-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:09.445 [nioEventLoopGroup-612-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x113a5aad, /127.0.0.1:44960 => /127.0.0.1:34413] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:09.445 [nioEventLoopGroup-612-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x113a5aad, /127.0.0.1:44960 => /127.0.0.1:34413] FLUSH
05:24:09.445 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:09.445 [nioEventLoopGroup-612-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x113a5aad, /127.0.0.1:44960 => /127.0.0.1:34413] FLUSH
05:24:09.445 [nioEventLoopGroup-612-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x113a5aad, /127.0.0.1:44960 :> /127.0.0.1:34413] INACTIVE
05:24:09.445 [nioEventLoopGroup-616-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-616-1
05:24:09.445 [nioEventLoopGroup-612-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x113a5aad, /127.0.0.1:44960 :> /127.0.0.1:34413] UNREGISTERED
05:24:09.445 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:09.446 [nioEventLoopGroup-612-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbcac6c55, /127.0.0.1:44962 => /127.0.0.1:34413] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34413
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
05:24:09.447 [nioEventLoopGroup-612-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
05:24:09.447 [nioEventLoopGroup-612-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbcac6c55, /127.0.0.1:44962 => /127.0.0.1:34413] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:09.447 [nioEventLoopGroup-612-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbcac6c55, /127.0.0.1:44962 => /127.0.0.1:34413] FLUSH
05:24:09.447 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:09.447 [nioEventLoopGroup-612-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbcac6c55, /127.0.0.1:44962 => /127.0.0.1:34413] FLUSH
05:24:09.447 [nioEventLoopGroup-617-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-617-1
05:24:09.447 [nioEventLoopGroup-612-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbcac6c55, /127.0.0.1:44962 :> /127.0.0.1:34413] INACTIVE
05:24:09.447 [nioEventLoopGroup-612-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbcac6c55, /127.0.0.1:44962 :> /127.0.0.1:34413] UNREGISTERED
05:24:09.448 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:09.449 [nioEventLoopGroup-612-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3cf9c1b2, /127.0.0.1:44964 => /127.0.0.1:34413] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34413
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
05:24:09.449 [nioEventLoopGroup-612-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
05:24:09.449 [nioEventLoopGroup-612-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3cf9c1b2, /127.0.0.1:44964 => /127.0.0.1:34413] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:09.449 [nioEventLoopGroup-612-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3cf9c1b2, /127.0.0.1:44964 => /127.0.0.1:34413] FLUSH
05:24:09.449 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:09.449 [nioEventLoopGroup-612-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3cf9c1b2, /127.0.0.1:44964 => /127.0.0.1:34413] FLUSH
05:24:09.449 [nioEventLoopGroup-618-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-618-1
05:24:09.449 [nioEventLoopGroup-612-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3cf9c1b2, /127.0.0.1:44964 :> /127.0.0.1:34413] INACTIVE
05:24:09.449 [nioEventLoopGroup-612-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3cf9c1b2, /127.0.0.1:44964 :> /127.0.0.1:34413] UNREGISTERED
05:24:09.450 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:09.451 [nioEventLoopGroup-612-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8502c268, /127.0.0.1:44966 => /127.0.0.1:34413] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34413
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:09.451 [nioEventLoopGroup-612-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
05:24:09.451 [nioEventLoopGroup-612-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8502c268, /127.0.0.1:44966 => /127.0.0.1:34413] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:09.451 [nioEventLoopGroup-612-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8502c268, /127.0.0.1:44966 => /127.0.0.1:34413] FLUSH
05:24:09.451 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:09.452 [nioEventLoopGroup-612-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8502c268, /127.0.0.1:44966 => /127.0.0.1:34413] FLUSH
05:24:09.452 [nioEventLoopGroup-612-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8502c268, /127.0.0.1:44966 :> /127.0.0.1:34413] INACTIVE
05:24:09.452 [nioEventLoopGroup-612-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8502c268, /127.0.0.1:44966 :> /127.0.0.1:34413] UNREGISTERED
05:24:09.452 [nioEventLoopGroup-619-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-619-1
05:24:09.452 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:09.453 [nioEventLoopGroup-612-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d6950a5, /127.0.0.1:44968 => /127.0.0.1:34413] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34413
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:09.453 [nioEventLoopGroup-612-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
05:24:09.453 [nioEventLoopGroup-612-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d6950a5, /127.0.0.1:44968 => /127.0.0.1:34413] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:09.454 [nioEventLoopGroup-612-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d6950a5, /127.0.0.1:44968 => /127.0.0.1:34413] FLUSH
05:24:09.454 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:09.454 [nioEventLoopGroup-612-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d6950a5, /127.0.0.1:44968 => /127.0.0.1:34413] FLUSH
05:24:09.454 [nioEventLoopGroup-620-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-620-1
05:24:09.454 [nioEventLoopGroup-612-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d6950a5, /127.0.0.1:44968 :> /127.0.0.1:34413] INACTIVE
05:24:09.454 [nioEventLoopGroup-612-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d6950a5, /127.0.0.1:44968 :> /127.0.0.1:34413] UNREGISTERED
05:24:09.454 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:09.455 [nioEventLoopGroup-612-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7fc56087, /127.0.0.1:44970 => /127.0.0.1:34413] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34413
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:09.456 [nioEventLoopGroup-612-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
05:24:09.456 [nioEventLoopGroup-612-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7fc56087, /127.0.0.1:44970 => /127.0.0.1:34413] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:09.456 [nioEventLoopGroup-612-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7fc56087, /127.0.0.1:44970 => /127.0.0.1:34413] FLUSH
05:24:09.456 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:09.456 [nioEventLoopGroup-612-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7fc56087, /127.0.0.1:44970 => /127.0.0.1:34413] FLUSH
05:24:09.456 [nioEventLoopGroup-612-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7fc56087, /127.0.0.1:44970 :> /127.0.0.1:34413] INACTIVE
05:24:09.456 [nioEventLoopGroup-621-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-621-1
05:24:09.456 [nioEventLoopGroup-612-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7fc56087, /127.0.0.1:44970 :> /127.0.0.1:34413] UNREGISTERED
05:24:09.457 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:09.457 [nioEventLoopGroup-612-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf93d32b0, /127.0.0.1:44972 => /127.0.0.1:34413] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34413
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:09.458 [nioEventLoopGroup-612-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
05:24:09.458 [nioEventLoopGroup-612-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf93d32b0, /127.0.0.1:44972 => /127.0.0.1:34413] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:09.458 [nioEventLoopGroup-612-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf93d32b0, /127.0.0.1:44972 => /127.0.0.1:34413] FLUSH
05:24:09.458 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:09.458 [nioEventLoopGroup-612-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf93d32b0, /127.0.0.1:44972 => /127.0.0.1:34413] FLUSH
05:24:09.458 [nioEventLoopGroup-612-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf93d32b0, /127.0.0.1:44972 :> /127.0.0.1:34413] INACTIVE
05:24:09.458 [nioEventLoopGroup-612-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf93d32b0, /127.0.0.1:44972 :> /127.0.0.1:34413] UNREGISTERED
05:24:09.458 [nioEventLoopGroup-622-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-622-1
05:24:09.459 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:09.459 [nioEventLoopGroup-612-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1cbb14ab, /127.0.0.1:44974 => /127.0.0.1:34413] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34413
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:09.460 [nioEventLoopGroup-612-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
05:24:09.460 [nioEventLoopGroup-612-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1cbb14ab, /127.0.0.1:44974 => /127.0.0.1:34413] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:09.460 [nioEventLoopGroup-612-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1cbb14ab, /127.0.0.1:44974 => /127.0.0.1:34413] FLUSH
05:24:09.460 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:09.460 [nioEventLoopGroup-612-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1cbb14ab, /127.0.0.1:44974 => /127.0.0.1:34413] FLUSH
05:24:09.460 [nioEventLoopGroup-612-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1cbb14ab, /127.0.0.1:44974 :> /127.0.0.1:34413] INACTIVE
05:24:09.460 [nioEventLoopGroup-612-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1cbb14ab, /127.0.0.1:44974 :> /127.0.0.1:34413] UNREGISTERED
05:24:09.460 [nioEventLoopGroup-623-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-623-1
05:24:09.460 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:09.461 [nioEventLoopGroup-612-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x46592e08, /127.0.0.1:44976 => /127.0.0.1:34413] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34413
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:09.462 [nioEventLoopGroup-612-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
05:24:09.462 [nioEventLoopGroup-612-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x46592e08, /127.0.0.1:44976 => /127.0.0.1:34413] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:09.462 [nioEventLoopGroup-612-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x46592e08, /127.0.0.1:44976 => /127.0.0.1:34413] FLUSH
05:24:09.462 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:09.462 [nioEventLoopGroup-612-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x46592e08, /127.0.0.1:44976 => /127.0.0.1:34413] FLUSH
05:24:09.462 [nioEventLoopGroup-612-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x46592e08, /127.0.0.1:44976 :> /127.0.0.1:34413] INACTIVE
05:24:09.462 [nioEventLoopGroup-624-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-624-1
05:24:09.462 [nioEventLoopGroup-612-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x46592e08, /127.0.0.1:44976 :> /127.0.0.1:34413] UNREGISTERED
05:24:09.463 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:09.464 [nioEventLoopGroup-612-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x03d7bf56, /127.0.0.1:44978 => /127.0.0.1:34413] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34413
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:09.464 [nioEventLoopGroup-612-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:09.464 [nioEventLoopGroup-612-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x03d7bf56, /127.0.0.1:44978 => /127.0.0.1:34413] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:09.464 [nioEventLoopGroup-612-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x03d7bf56, /127.0.0.1:44978 => /127.0.0.1:34413] FLUSH
05:24:09.464 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:09.464 [nioEventLoopGroup-612-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x03d7bf56, /127.0.0.1:44978 => /127.0.0.1:34413] FLUSH
05:24:09.464 [nioEventLoopGroup-612-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x03d7bf56, /127.0.0.1:44978 :> /127.0.0.1:34413] INACTIVE
05:24:09.464 [nioEventLoopGroup-612-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x03d7bf56, /127.0.0.1:44978 :> /127.0.0.1:34413] UNREGISTERED
05:24:09.464 [nioEventLoopGroup-625-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-625-1
05:24:09.472 [nioEventLoopGroup-612-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f2ee071, /127.0.0.1:44980 => /127.0.0.1:34413] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /date HTTP/1.1
Host: localhost:34413
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_102)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
05:24:09.472 [nioEventLoopGroup-612-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34413" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:09.472 [nioEventLoopGroup-612-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34413" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:09.472 [nioEventLoopGroup-612-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34413" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:24:09.473 [nioEventLoopGroup-612-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34413" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:09.473 [nioEventLoopGroup-612-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34413" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:09.473 [nioEventLoopGroup-612-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34413" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:09.473 [nioEventLoopGroup-612-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34413" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/date"
}
05:24:09.473 [nioEventLoopGroup-612-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
for request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34413" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:24:09.473 [nioEventLoopGroup-612-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f2ee071, /127.0.0.1:44980 => /127.0.0.1:34413] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 16, cap: 16/16))
HTTP/1.1 200 OK
Content-Type: text/date
Content-Length: 16
Connection: keep-alive, 16B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 32 30 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 |2016.08.25 14:43|
+--------+-------------------------------------------------+----------------+
05:24:09.473 [nioEventLoopGroup-612-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f2ee071, /127.0.0.1:44980 => /127.0.0.1:34413] FLUSH
05:24:09.487 [nioEventLoopGroup-612-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa8c04db3, /127.0.0.1:44982 => /127.0.0.1:34413] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /date HTTP/1.1
Host: localhost:34413
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_102)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
05:24:09.487 [nioEventLoopGroup-612-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34413" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:09.487 [nioEventLoopGroup-612-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34413" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:09.487 [nioEventLoopGroup-612-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34413" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:24:09.487 [nioEventLoopGroup-612-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34413" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:09.487 [nioEventLoopGroup-612-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34413" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:09.488 [nioEventLoopGroup-612-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34413" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:09.488 [nioEventLoopGroup-612-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34413" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/date"
}
05:24:09.488 [nioEventLoopGroup-612-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
for request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34413" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_102)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:24:09.488 [nioEventLoopGroup-612-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa8c04db3, /127.0.0.1:44982 => /127.0.0.1:34413] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 16, cap: 16/16))
HTTP/1.1 200 OK
Content-Type: text/date
Content-Length: 16
Connection: keep-alive, 16B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 32 30 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 |2016.08.25 14:43|
+--------+-------------------------------------------------+----------------+
05:24:09.488 [nioEventLoopGroup-612-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa8c04db3, /127.0.0.1:44982 => /127.0.0.1:34413] FLUSH
05:24:09.489 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
05:24:09.490 [nioEventLoopGroup-612-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2924c007, /127.0.0.1:44984 => /127.0.0.1:34413] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:34413
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
05:24:09.490 [nioEventLoopGroup-612-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2924c007, /127.0.0.1:44984 => /127.0.0.1:34413] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:09.490 [nioEventLoopGroup-612-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2924c007, /127.0.0.1:44984 => /127.0.0.1:34413] FLUSH
05:24:09.490 [nioEventLoopGroup-612-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2924c007, /127.0.0.1:44984 => /127.0.0.1:34413] CLOSE()
05:24:09.490 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:09.490 [nioEventLoopGroup-626-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-626-1
05:24:09.491 [nioEventLoopGroup-612-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-1
05:24:09.491 [nioEventLoopGroup-612-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-2
05:24:09.491 [nioEventLoopGroup-612-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-3
05:24:09.491 [nioEventLoopGroup-612-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-11
05:24:09.491 [nioEventLoopGroup-612-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-13
05:24:09.491 [nioEventLoopGroup-612-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-7
05:24:09.491 [nioEventLoopGroup-612-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-8
05:24:09.491 [nioEventLoopGroup-612-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa8c04db3, /127.0.0.1:44982 :> /127.0.0.1:34413] INACTIVE
05:24:09.491 [nioEventLoopGroup-612-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-9
05:24:09.491 [nioEventLoopGroup-612-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-4
05:24:09.491 [nioEventLoopGroup-612-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-10
05:24:09.491 [nioEventLoopGroup-612-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-5
05:24:09.491 [nioEventLoopGroup-612-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-12
05:24:09.491 [nioEventLoopGroup-612-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-6
05:24:09.491 [nioEventLoopGroup-612-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f2ee071, /127.0.0.1:44980 :> /127.0.0.1:34413] INACTIVE
05:24:09.491 [nioEventLoopGroup-612-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa8c04db3, /127.0.0.1:44982 :> /127.0.0.1:34413] UNREGISTERED
05:24:09.491 [nioEventLoopGroup-612-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f2ee071, /127.0.0.1:44980 :> /127.0.0.1:34413] UNREGISTERED
05:24:09.584 [nioEventLoopGroup-596-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7919bf68, /127.0.0.1:33586 :> /127.0.0.1:35783] FLUSH
05:24:09.584 [nioEventLoopGroup-596-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7919bf68, /127.0.0.1:33586 :> /127.0.0.1:35783] INACTIVE
05:24:09.584 [nioEventLoopGroup-596-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7919bf68, /127.0.0.1:33586 :> /127.0.0.1:35783] UNREGISTERED
05:24:09.584 [nioEventLoopGroup-596-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-16
05:24:09.661 [nioEventLoopGroup-580-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-15
05:24:09.661 [nioEventLoopGroup-580-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-14
05:24:09.843 [MockServer thread for port: 43497] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 43497
05:24:09.844 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:09.845 [nioEventLoopGroup-628-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x122510db, /127.0.0.1:39858 => /127.0.0.1:43497] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43497
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:09.845 [nioEventLoopGroup-628-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:09.846 [nioEventLoopGroup-628-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x122510db, /127.0.0.1:39858 => /127.0.0.1:43497] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:09.846 [nioEventLoopGroup-628-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x122510db, /127.0.0.1:39858 => /127.0.0.1:43497] FLUSH
05:24:09.846 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:09.846 [nioEventLoopGroup-628-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x122510db, /127.0.0.1:39858 => /127.0.0.1:43497] FLUSH
05:24:09.846 [nioEventLoopGroup-628-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x122510db, /127.0.0.1:39858 :> /127.0.0.1:43497] INACTIVE
05:24:09.846 [nioEventLoopGroup-628-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x122510db, /127.0.0.1:39858 :> /127.0.0.1:43497] UNREGISTERED
05:24:09.846 [nioEventLoopGroup-629-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-629-1
05:24:09.847 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:09.848 [nioEventLoopGroup-628-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcdacaa53, /127.0.0.1:39860 => /127.0.0.1:43497] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43497
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:09.848 [nioEventLoopGroup-628-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
05:24:09.848 [nioEventLoopGroup-628-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcdacaa53, /127.0.0.1:39860 => /127.0.0.1:43497] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:09.848 [nioEventLoopGroup-628-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcdacaa53, /127.0.0.1:39860 => /127.0.0.1:43497] FLUSH
05:24:09.848 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:09.848 [nioEventLoopGroup-628-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcdacaa53, /127.0.0.1:39860 => /127.0.0.1:43497] FLUSH
05:24:09.849 [nioEventLoopGroup-628-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcdacaa53, /127.0.0.1:39860 :> /127.0.0.1:43497] INACTIVE
05:24:09.849 [nioEventLoopGroup-628-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcdacaa53, /127.0.0.1:39860 :> /127.0.0.1:43497] UNREGISTERED
05:24:09.849 [nioEventLoopGroup-630-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-630-1
05:24:09.851 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:09.852 [nioEventLoopGroup-628-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5f64cd0a, /127.0.0.1:39862 => /127.0.0.1:43497] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43497
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:09.853 [nioEventLoopGroup-628-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
05:24:09.853 [nioEventLoopGroup-628-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5f64cd0a, /127.0.0.1:39862 => /127.0.0.1:43497] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:09.853 [nioEventLoopGroup-628-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5f64cd0a, /127.0.0.1:39862 => /127.0.0.1:43497] FLUSH
05:24:09.853 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:09.853 [nioEventLoopGroup-628-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5f64cd0a, /127.0.0.1:39862 => /127.0.0.1:43497] FLUSH
05:24:09.853 [nioEventLoopGroup-628-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5f64cd0a, /127.0.0.1:39862 :> /127.0.0.1:43497] INACTIVE
05:24:09.853 [nioEventLoopGroup-631-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-631-1
05:24:09.853 [nioEventLoopGroup-628-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5f64cd0a, /127.0.0.1:39862 :> /127.0.0.1:43497] UNREGISTERED
05:24:09.853 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:09.855 [nioEventLoopGroup-628-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6e4c9b11, /127.0.0.1:39864 => /127.0.0.1:43497] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43497
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:09.855 [nioEventLoopGroup-628-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:09.855 [nioEventLoopGroup-628-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6e4c9b11, /127.0.0.1:39864 => /127.0.0.1:43497] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:09.855 [nioEventLoopGroup-628-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6e4c9b11, /127.0.0.1:39864 => /127.0.0.1:43497] FLUSH
05:24:09.855 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:09.855 [nioEventLoopGroup-628-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6e4c9b11, /127.0.0.1:39864 => /127.0.0.1:43497] FLUSH
05:24:09.856 [nioEventLoopGroup-628-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6e4c9b11, /127.0.0.1:39864 :> /127.0.0.1:43497] INACTIVE
05:24:09.856 [nioEventLoopGroup-632-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-632-1
05:24:09.856 [nioEventLoopGroup-628-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6e4c9b11, /127.0.0.1:39864 :> /127.0.0.1:43497] UNREGISTERED
05:24:09.856 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:09.857 [nioEventLoopGroup-628-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x056db6c5, /127.0.0.1:39866 => /127.0.0.1:43497] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43497
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
05:24:09.858 [nioEventLoopGroup-628-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
05:24:09.858 [nioEventLoopGroup-628-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x056db6c5, /127.0.0.1:39866 => /127.0.0.1:43497] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:09.858 [nioEventLoopGroup-628-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x056db6c5, /127.0.0.1:39866 => /127.0.0.1:43497] FLUSH
05:24:09.858 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:09.858 [nioEventLoopGroup-628-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x056db6c5, /127.0.0.1:39866 => /127.0.0.1:43497] FLUSH
05:24:09.858 [nioEventLoopGroup-628-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x056db6c5, /127.0.0.1:39866 :> /127.0.0.1:43497] INACTIVE
05:24:09.858 [nioEventLoopGroup-628-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x056db6c5, /127.0.0.1:39866 :> /127.0.0.1:43497] UNREGISTERED
05:24:09.858 [nioEventLoopGroup-633-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-633-1
05:24:09.859 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:09.860 [nioEventLoopGroup-628-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcefcccd7, /127.0.0.1:39868 => /127.0.0.1:43497] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43497
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
05:24:09.860 [nioEventLoopGroup-628-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
05:24:09.860 [nioEventLoopGroup-628-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcefcccd7, /127.0.0.1:39868 => /127.0.0.1:43497] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:09.861 [nioEventLoopGroup-628-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcefcccd7, /127.0.0.1:39868 => /127.0.0.1:43497] FLUSH
05:24:09.861 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:09.861 [nioEventLoopGroup-628-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcefcccd7, /127.0.0.1:39868 => /127.0.0.1:43497] FLUSH
05:24:09.861 [nioEventLoopGroup-628-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcefcccd7, /127.0.0.1:39868 :> /127.0.0.1:43497] INACTIVE
05:24:09.861 [nioEventLoopGroup-628-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcefcccd7, /127.0.0.1:39868 :> /127.0.0.1:43497] UNREGISTERED
05:24:09.861 [nioEventLoopGroup-634-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-634-1
05:24:09.861 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:09.863 [nioEventLoopGroup-628-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb9727da9, /127.0.0.1:39870 => /127.0.0.1:43497] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43497
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:09.863 [nioEventLoopGroup-628-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
05:24:09.863 [nioEventLoopGroup-628-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb9727da9, /127.0.0.1:39870 => /127.0.0.1:43497] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:09.863 [nioEventLoopGroup-628-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb9727da9, /127.0.0.1:39870 => /127.0.0.1:43497] FLUSH
05:24:09.863 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:09.864 [nioEventLoopGroup-628-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb9727da9, /127.0.0.1:39870 => /127.0.0.1:43497] FLUSH
05:24:09.864 [nioEventLoopGroup-628-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb9727da9, /127.0.0.1:39870 :> /127.0.0.1:43497] INACTIVE
05:24:09.864 [nioEventLoopGroup-635-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-635-1
05:24:09.864 [nioEventLoopGroup-628-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb9727da9, /127.0.0.1:39870 :> /127.0.0.1:43497] UNREGISTERED
05:24:09.864 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:09.865 [nioEventLoopGroup-628-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1c9cdc32, /127.0.0.1:39872 => /127.0.0.1:43497] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43497
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:09.866 [nioEventLoopGroup-628-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
05:24:09.866 [nioEventLoopGroup-628-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1c9cdc32, /127.0.0.1:39872 => /127.0.0.1:43497] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:09.866 [nioEventLoopGroup-628-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1c9cdc32, /127.0.0.1:39872 => /127.0.0.1:43497] FLUSH
05:24:09.866 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:09.866 [nioEventLoopGroup-628-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1c9cdc32, /127.0.0.1:39872 => /127.0.0.1:43497] FLUSH
05:24:09.866 [nioEventLoopGroup-628-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1c9cdc32, /127.0.0.1:39872 :> /127.0.0.1:43497] INACTIVE
05:24:09.866 [nioEventLoopGroup-628-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1c9cdc32, /127.0.0.1:39872 :> /127.0.0.1:43497] UNREGISTERED
05:24:09.866 [nioEventLoopGroup-636-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-636-1
05:24:09.870 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:09.871 [nioEventLoopGroup-628-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd5dd48c8, /127.0.0.1:39874 => /127.0.0.1:43497] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43497
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:09.872 [nioEventLoopGroup-628-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
05:24:09.872 [nioEventLoopGroup-628-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd5dd48c8, /127.0.0.1:39874 => /127.0.0.1:43497] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:09.872 [nioEventLoopGroup-628-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd5dd48c8, /127.0.0.1:39874 => /127.0.0.1:43497] FLUSH
05:24:09.872 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:09.872 [nioEventLoopGroup-628-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd5dd48c8, /127.0.0.1:39874 => /127.0.0.1:43497] FLUSH
05:24:09.872 [nioEventLoopGroup-628-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd5dd48c8, /127.0.0.1:39874 :> /127.0.0.1:43497] INACTIVE
05:24:09.872 [nioEventLoopGroup-628-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd5dd48c8, /127.0.0.1:39874 :> /127.0.0.1:43497] UNREGISTERED
05:24:09.872 [nioEventLoopGroup-637-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-637-1
05:24:09.873 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:09.874 [nioEventLoopGroup-628-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc8f187e, /127.0.0.1:39876 => /127.0.0.1:43497] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43497
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:09.874 [nioEventLoopGroup-628-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
05:24:09.874 [nioEventLoopGroup-628-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc8f187e, /127.0.0.1:39876 => /127.0.0.1:43497] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:09.874 [nioEventLoopGroup-628-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc8f187e, /127.0.0.1:39876 => /127.0.0.1:43497] FLUSH
05:24:09.874 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:09.874 [nioEventLoopGroup-628-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc8f187e, /127.0.0.1:39876 => /127.0.0.1:43497] FLUSH
05:24:09.874 [nioEventLoopGroup-628-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc8f187e, /127.0.0.1:39876 :> /127.0.0.1:43497] INACTIVE
05:24:09.874 [nioEventLoopGroup-638-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-638-1
05:24:09.874 [nioEventLoopGroup-628-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc8f187e, /127.0.0.1:39876 :> /127.0.0.1:43497] UNREGISTERED
05:24:09.876 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:09.877 [nioEventLoopGroup-628-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7187cdf4, /127.0.0.1:39878 => /127.0.0.1:43497] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43497
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:09.877 [nioEventLoopGroup-628-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
05:24:09.877 [nioEventLoopGroup-628-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7187cdf4, /127.0.0.1:39878 => /127.0.0.1:43497] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:09.877 [nioEventLoopGroup-628-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7187cdf4, /127.0.0.1:39878 => /127.0.0.1:43497] FLUSH
05:24:09.878 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:09.878 [nioEventLoopGroup-628-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7187cdf4, /127.0.0.1:39878 => /127.0.0.1:43497] FLUSH
05:24:09.878 [nioEventLoopGroup-628-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7187cdf4, /127.0.0.1:39878 :> /127.0.0.1:43497] INACTIVE
05:24:09.878 [nioEventLoopGroup-639-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-639-1
05:24:09.878 [nioEventLoopGroup-628-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7187cdf4, /127.0.0.1:39878 :> /127.0.0.1:43497] UNREGISTERED
05:24:09.878 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:09.879 [nioEventLoopGroup-628-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdd22b6d0, /127.0.0.1:39880 => /127.0.0.1:43497] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43497
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:09.880 [nioEventLoopGroup-628-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
05:24:09.880 [nioEventLoopGroup-628-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdd22b6d0, /127.0.0.1:39880 => /127.0.0.1:43497] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:09.880 [nioEventLoopGroup-628-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdd22b6d0, /127.0.0.1:39880 => /127.0.0.1:43497] FLUSH
05:24:09.880 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:09.880 [nioEventLoopGroup-628-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdd22b6d0, /127.0.0.1:39880 => /127.0.0.1:43497] FLUSH
05:24:09.880 [nioEventLoopGroup-628-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdd22b6d0, /127.0.0.1:39880 :> /127.0.0.1:43497] INACTIVE
05:24:09.880 [nioEventLoopGroup-640-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-640-1
05:24:09.880 [nioEventLoopGroup-628-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdd22b6d0, /127.0.0.1:39880 :> /127.0.0.1:43497] UNREGISTERED
05:24:09.880 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:09.882 [nioEventLoopGroup-628-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x56c7193d, /127.0.0.1:39882 => /127.0.0.1:43497] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43497
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:09.882 [nioEventLoopGroup-628-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:09.882 [nioEventLoopGroup-628-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x56c7193d, /127.0.0.1:39882 => /127.0.0.1:43497] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:09.882 [nioEventLoopGroup-628-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x56c7193d, /127.0.0.1:39882 => /127.0.0.1:43497] FLUSH
05:24:09.882 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:09.882 [nioEventLoopGroup-628-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x56c7193d, /127.0.0.1:39882 => /127.0.0.1:43497] FLUSH
05:24:09.882 [nioEventLoopGroup-628-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x56c7193d, /127.0.0.1:39882 :> /127.0.0.1:43497] INACTIVE
05:24:09.883 [nioEventLoopGroup-628-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x56c7193d, /127.0.0.1:39882 :> /127.0.0.1:43497] UNREGISTERED
05:24:09.883 [nioEventLoopGroup-641-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-641-1
05:24:09.884 [nioEventLoopGroup-628-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x40b3cf16, /127.0.0.1:39884 => /127.0.0.1:43497] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /date HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_102
Host: localhost:43497
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
05:24:09.884 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:43497" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:09.884 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:43497" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:09.885 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:43497" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:24:09.885 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:43497" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:09.885 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:43497" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:09.885 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:43497" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:09.885 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:43497" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/date"
}
05:24:09.885 [nioEventLoopGroup-628-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
for request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:43497" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:24:09.885 [nioEventLoopGroup-628-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x40b3cf16, /127.0.0.1:39884 => /127.0.0.1:43497] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 16, cap: 16/16))
HTTP/1.1 200 OK
Content-Type: text/date
Content-Length: 16
Connection: keep-alive, 16B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 32 30 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 |2016.08.25 14:43|
+--------+-------------------------------------------------+----------------+
05:24:09.885 [nioEventLoopGroup-628-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x40b3cf16, /127.0.0.1:39884 => /127.0.0.1:43497] FLUSH
05:24:09.890 [nioEventLoopGroup-628-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x40b3cf16, /127.0.0.1:39884 => /127.0.0.1:43497] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /date HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_102
Host: localhost:43497
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
05:24:09.891 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:43497" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:09.891 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:43497" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:09.891 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:43497" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
05:24:09.891 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:43497" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:09.891 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:43497" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:09.891 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:43497" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
05:24:09.891 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:43497" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/date"
}
05:24:09.892 [nioEventLoopGroup-628-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
for request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_102" ]
}, {
"name" : "Host",
"values" : [ "localhost:43497" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
05:24:09.892 [nioEventLoopGroup-628-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x40b3cf16, /127.0.0.1:39884 => /127.0.0.1:43497] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 16, cap: 16/16))
HTTP/1.1 200 OK
Content-Type: text/date
Content-Length: 16
Connection: keep-alive, 16B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 32 30 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 |2016.08.25 14:43|
+--------+-------------------------------------------------+----------------+
05:24:09.892 [nioEventLoopGroup-628-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x40b3cf16, /127.0.0.1:39884 => /127.0.0.1:43497] FLUSH
05:24:09.893 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
05:24:09.894 [nioEventLoopGroup-628-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x70edc8b7, /127.0.0.1:39886 => /127.0.0.1:43497] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:43497
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
05:24:09.894 [nioEventLoopGroup-628-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x70edc8b7, /127.0.0.1:39886 => /127.0.0.1:43497] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:09.894 [nioEventLoopGroup-628-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x70edc8b7, /127.0.0.1:39886 => /127.0.0.1:43497] FLUSH
05:24:09.894 [nioEventLoopGroup-628-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x70edc8b7, /127.0.0.1:39886 => /127.0.0.1:43497] CLOSE()
05:24:09.894 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:09.894 [nioEventLoopGroup-642-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-642-1
05:24:09.895 [nioEventLoopGroup-628-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-1
05:24:09.895 [nioEventLoopGroup-628-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-3
05:24:09.895 [nioEventLoopGroup-628-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-4
05:24:09.895 [nioEventLoopGroup-628-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-7
05:24:09.895 [nioEventLoopGroup-628-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-11
05:24:09.895 [nioEventLoopGroup-628-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-5
05:24:09.895 [nioEventLoopGroup-628-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-8
05:24:09.895 [nioEventLoopGroup-628-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-9
05:24:09.895 [nioEventLoopGroup-628-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-2
05:24:09.895 [nioEventLoopGroup-628-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-6
05:24:09.895 [nioEventLoopGroup-628-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-10
05:24:09.895 [nioEventLoopGroup-628-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x40b3cf16, /127.0.0.1:39884 :> /127.0.0.1:43497] INACTIVE
05:24:09.895 [nioEventLoopGroup-628-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-12
05:24:09.895 [nioEventLoopGroup-628-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-13
05:24:09.895 [nioEventLoopGroup-628-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x40b3cf16, /127.0.0.1:39884 :> /127.0.0.1:43497] UNREGISTERED
05:24:09.991 [nioEventLoopGroup-612-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2924c007, /127.0.0.1:44984 :> /127.0.0.1:34413] FLUSH
05:24:09.991 [nioEventLoopGroup-612-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2924c007, /127.0.0.1:44984 :> /127.0.0.1:34413] INACTIVE
05:24:09.991 [nioEventLoopGroup-612-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2924c007, /127.0.0.1:44984 :> /127.0.0.1:34413] UNREGISTERED
05:24:09.991 [nioEventLoopGroup-612-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-16
05:24:10.085 [nioEventLoopGroup-596-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-15
05:24:10.246 [MockServer thread for port: 34353] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 34353
05:24:10.246 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:10.248 [nioEventLoopGroup-644-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa002673a, /127.0.0.1:56450 => /127.0.0.1:34353] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34353
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:10.248 [nioEventLoopGroup-644-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:10.249 [nioEventLoopGroup-644-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa002673a, /127.0.0.1:56450 => /127.0.0.1:34353] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:10.249 [nioEventLoopGroup-644-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa002673a, /127.0.0.1:56450 => /127.0.0.1:34353] FLUSH
05:24:10.249 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:10.249 [nioEventLoopGroup-644-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa002673a, /127.0.0.1:56450 => /127.0.0.1:34353] FLUSH
05:24:10.249 [nioEventLoopGroup-644-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa002673a, /127.0.0.1:56450 :> /127.0.0.1:34353] INACTIVE
05:24:10.249 [nioEventLoopGroup-645-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-645-1
05:24:10.249 [nioEventLoopGroup-644-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa002673a, /127.0.0.1:56450 :> /127.0.0.1:34353] UNREGISTERED
05:24:10.249 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:10.251 [nioEventLoopGroup-644-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6528b68d, /127.0.0.1:56452 => /127.0.0.1:34353] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34353
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:10.251 [nioEventLoopGroup-644-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
05:24:10.251 [nioEventLoopGroup-644-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6528b68d, /127.0.0.1:56452 => /127.0.0.1:34353] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:10.251 [nioEventLoopGroup-644-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6528b68d, /127.0.0.1:56452 => /127.0.0.1:34353] FLUSH
05:24:10.251 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:10.251 [nioEventLoopGroup-644-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6528b68d, /127.0.0.1:56452 => /127.0.0.1:34353] FLUSH
05:24:10.251 [nioEventLoopGroup-644-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6528b68d, /127.0.0.1:56452 :> /127.0.0.1:34353] INACTIVE
05:24:10.251 [nioEventLoopGroup-644-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6528b68d, /127.0.0.1:56452 :> /127.0.0.1:34353] UNREGISTERED
05:24:10.251 [nioEventLoopGroup-646-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-646-1
05:24:10.252 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:10.253 [nioEventLoopGroup-644-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2126b49f, /127.0.0.1:56454 => /127.0.0.1:34353] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34353
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:10.254 [nioEventLoopGroup-644-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
05:24:10.254 [nioEventLoopGroup-644-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2126b49f, /127.0.0.1:56454 => /127.0.0.1:34353] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:10.254 [nioEventLoopGroup-644-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2126b49f, /127.0.0.1:56454 => /127.0.0.1:34353] FLUSH
05:24:10.254 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:10.254 [nioEventLoopGroup-644-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2126b49f, /127.0.0.1:56454 => /127.0.0.1:34353] FLUSH
05:24:10.254 [nioEventLoopGroup-644-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2126b49f, /127.0.0.1:56454 :> /127.0.0.1:34353] INACTIVE
05:24:10.254 [nioEventLoopGroup-644-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2126b49f, /127.0.0.1:56454 :> /127.0.0.1:34353] UNREGISTERED
05:24:10.254 [nioEventLoopGroup-647-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-647-1
05:24:10.255 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:10.256 [nioEventLoopGroup-644-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf15892c2, /127.0.0.1:56456 => /127.0.0.1:34353] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34353
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:10.256 [nioEventLoopGroup-644-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:10.256 [nioEventLoopGroup-644-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf15892c2, /127.0.0.1:56456 => /127.0.0.1:34353] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:10.256 [nioEventLoopGroup-644-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf15892c2, /127.0.0.1:56456 => /127.0.0.1:34353] FLUSH
05:24:10.256 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:10.256 [nioEventLoopGroup-644-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf15892c2, /127.0.0.1:56456 => /127.0.0.1:34353] FLUSH
05:24:10.256 [nioEventLoopGroup-644-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf15892c2, /127.0.0.1:56456 :> /127.0.0.1:34353] INACTIVE
05:24:10.256 [nioEventLoopGroup-648-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-648-1
05:24:10.256 [nioEventLoopGroup-644-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf15892c2, /127.0.0.1:56456 :> /127.0.0.1:34353] UNREGISTERED
05:24:10.257 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:10.258 [nioEventLoopGroup-644-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7adcf3d9, /127.0.0.1:56458 => /127.0.0.1:34353] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34353
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
05:24:10.258 [nioEventLoopGroup-644-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
05:24:10.258 [nioEventLoopGroup-644-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7adcf3d9, /127.0.0.1:56458 => /127.0.0.1:34353] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:10.258 [nioEventLoopGroup-644-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7adcf3d9, /127.0.0.1:56458 => /127.0.0.1:34353] FLUSH
05:24:10.258 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:10.258 [nioEventLoopGroup-644-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7adcf3d9, /127.0.0.1:56458 => /127.0.0.1:34353] FLUSH
05:24:10.259 [nioEventLoopGroup-644-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7adcf3d9, /127.0.0.1:56458 :> /127.0.0.1:34353] INACTIVE
05:24:10.259 [nioEventLoopGroup-644-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7adcf3d9, /127.0.0.1:56458 :> /127.0.0.1:34353] UNREGISTERED
05:24:10.259 [nioEventLoopGroup-649-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-649-1
05:24:10.259 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:10.260 [nioEventLoopGroup-644-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d5e2923, /127.0.0.1:56460 => /127.0.0.1:34353] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34353
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
05:24:10.261 [nioEventLoopGroup-644-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
05:24:10.261 [nioEventLoopGroup-644-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d5e2923, /127.0.0.1:56460 => /127.0.0.1:34353] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:10.261 [nioEventLoopGroup-644-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d5e2923, /127.0.0.1:56460 => /127.0.0.1:34353] FLUSH
05:24:10.261 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:10.261 [nioEventLoopGroup-644-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d5e2923, /127.0.0.1:56460 => /127.0.0.1:34353] FLUSH
05:24:10.261 [nioEventLoopGroup-644-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d5e2923, /127.0.0.1:56460 :> /127.0.0.1:34353] INACTIVE
05:24:10.261 [nioEventLoopGroup-644-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d5e2923, /127.0.0.1:56460 :> /127.0.0.1:34353] UNREGISTERED
05:24:10.261 [nioEventLoopGroup-650-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-650-1
05:24:10.262 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:10.263 [nioEventLoopGroup-644-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x14283a75, /127.0.0.1:56462 => /127.0.0.1:34353] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34353
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:10.263 [nioEventLoopGroup-644-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
05:24:10.263 [nioEventLoopGroup-644-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x14283a75, /127.0.0.1:56462 => /127.0.0.1:34353] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:10.263 [nioEventLoopGroup-644-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x14283a75, /127.0.0.1:56462 => /127.0.0.1:34353] FLUSH
05:24:10.263 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:10.264 [nioEventLoopGroup-644-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x14283a75, /127.0.0.1:56462 => /127.0.0.1:34353] FLUSH
05:24:10.264 [nioEventLoopGroup-644-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x14283a75, /127.0.0.1:56462 :> /127.0.0.1:34353] INACTIVE
05:24:10.264 [nioEventLoopGroup-651-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-651-1
05:24:10.264 [nioEventLoopGroup-644-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x14283a75, /127.0.0.1:56462 :> /127.0.0.1:34353] UNREGISTERED
05:24:10.264 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:10.266 [nioEventLoopGroup-644-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1e904cd3, /127.0.0.1:56464 => /127.0.0.1:34353] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34353
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:10.267 [nioEventLoopGroup-644-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
05:24:10.267 [nioEventLoopGroup-644-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1e904cd3, /127.0.0.1:56464 => /127.0.0.1:34353] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:10.267 [nioEventLoopGroup-644-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1e904cd3, /127.0.0.1:56464 => /127.0.0.1:34353] FLUSH
05:24:10.267 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:10.267 [nioEventLoopGroup-644-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1e904cd3, /127.0.0.1:56464 => /127.0.0.1:34353] FLUSH
05:24:10.267 [nioEventLoopGroup-644-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1e904cd3, /127.0.0.1:56464 :> /127.0.0.1:34353] INACTIVE
05:24:10.267 [nioEventLoopGroup-652-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-652-1
05:24:10.267 [nioEventLoopGroup-644-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1e904cd3, /127.0.0.1:56464 :> /127.0.0.1:34353] UNREGISTERED
05:24:10.268 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:10.269 [nioEventLoopGroup-644-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x634c05d1, /127.0.0.1:56466 => /127.0.0.1:34353] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34353
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:10.270 [nioEventLoopGroup-644-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
05:24:10.270 [nioEventLoopGroup-644-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x634c05d1, /127.0.0.1:56466 => /127.0.0.1:34353] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:10.270 [nioEventLoopGroup-644-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x634c05d1, /127.0.0.1:56466 => /127.0.0.1:34353] FLUSH
05:24:10.270 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:10.270 [nioEventLoopGroup-644-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x634c05d1, /127.0.0.1:56466 => /127.0.0.1:34353] FLUSH
05:24:10.270 [nioEventLoopGroup-644-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x634c05d1, /127.0.0.1:56466 :> /127.0.0.1:34353] INACTIVE
05:24:10.270 [nioEventLoopGroup-653-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-653-1
05:24:10.270 [nioEventLoopGroup-644-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x634c05d1, /127.0.0.1:56466 :> /127.0.0.1:34353] UNREGISTERED
05:24:10.271 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:10.274 [nioEventLoopGroup-644-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x67f6a71c, /127.0.0.1:56468 => /127.0.0.1:34353] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34353
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:10.274 [nioEventLoopGroup-644-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
05:24:10.274 [nioEventLoopGroup-644-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x67f6a71c, /127.0.0.1:56468 => /127.0.0.1:34353] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:10.274 [nioEventLoopGroup-644-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x67f6a71c, /127.0.0.1:56468 => /127.0.0.1:34353] FLUSH
05:24:10.274 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:10.274 [nioEventLoopGroup-644-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x67f6a71c, /127.0.0.1:56468 => /127.0.0.1:34353] FLUSH
05:24:10.274 [nioEventLoopGroup-644-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x67f6a71c, /127.0.0.1:56468 :> /127.0.0.1:34353] INACTIVE
05:24:10.274 [nioEventLoopGroup-644-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x67f6a71c, /127.0.0.1:56468 :> /127.0.0.1:34353] UNREGISTERED
05:24:10.274 [nioEventLoopGroup-654-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-654-1
05:24:10.275 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:10.277 [nioEventLoopGroup-644-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x93691d16, /127.0.0.1:56470 => /127.0.0.1:34353] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34353
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:10.278 [nioEventLoopGroup-644-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
05:24:10.278 [nioEventLoopGroup-644-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x93691d16, /127.0.0.1:56470 => /127.0.0.1:34353] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:10.278 [nioEventLoopGroup-644-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x93691d16, /127.0.0.1:56470 => /127.0.0.1:34353] FLUSH
05:24:10.278 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:10.278 [nioEventLoopGroup-644-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x93691d16, /127.0.0.1:56470 => /127.0.0.1:34353] FLUSH
05:24:10.278 [nioEventLoopGroup-644-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x93691d16, /127.0.0.1:56470 :> /127.0.0.1:34353] INACTIVE
05:24:10.278 [nioEventLoopGroup-644-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x93691d16, /127.0.0.1:56470 :> /127.0.0.1:34353] UNREGISTERED
05:24:10.278 [nioEventLoopGroup-655-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-655-1
05:24:10.279 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:10.282 [nioEventLoopGroup-644-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x03f5ec7e, /127.0.0.1:56472 => /127.0.0.1:34353] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34353
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:10.282 [nioEventLoopGroup-644-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
05:24:10.282 [nioEventLoopGroup-644-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x03f5ec7e, /127.0.0.1:56472 => /127.0.0.1:34353] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:10.282 [nioEventLoopGroup-644-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x03f5ec7e, /127.0.0.1:56472 => /127.0.0.1:34353] FLUSH
05:24:10.283 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:10.283 [nioEventLoopGroup-644-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x03f5ec7e, /127.0.0.1:56472 => /127.0.0.1:34353] FLUSH
05:24:10.283 [nioEventLoopGroup-644-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x03f5ec7e, /127.0.0.1:56472 :> /127.0.0.1:34353] INACTIVE
05:24:10.283 [nioEventLoopGroup-644-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x03f5ec7e, /127.0.0.1:56472 :> /127.0.0.1:34353] UNREGISTERED
05:24:10.283 [nioEventLoopGroup-656-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-656-1
05:24:10.283 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:10.286 [nioEventLoopGroup-644-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfdb21e65, /127.0.0.1:56474 => /127.0.0.1:34353] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34353
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:10.287 [nioEventLoopGroup-644-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:10.287 [nioEventLoopGroup-644-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfdb21e65, /127.0.0.1:56474 => /127.0.0.1:34353] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:10.287 [nioEventLoopGroup-644-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfdb21e65, /127.0.0.1:56474 => /127.0.0.1:34353] FLUSH
05:24:10.287 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:10.287 [nioEventLoopGroup-644-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfdb21e65, /127.0.0.1:56474 => /127.0.0.1:34353] FLUSH
05:24:10.287 [nioEventLoopGroup-644-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfdb21e65, /127.0.0.1:56474 :> /127.0.0.1:34353] INACTIVE
05:24:10.287 [nioEventLoopGroup-657-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-657-1
05:24:10.287 [nioEventLoopGroup-644-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfdb21e65, /127.0.0.1:56474 :> /127.0.0.1:34353] UNREGISTERED
05:24:10.395 [nioEventLoopGroup-628-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x70edc8b7, /127.0.0.1:39886 :> /127.0.0.1:43497] FLUSH
05:24:10.395 [nioEventLoopGroup-628-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x70edc8b7, /127.0.0.1:39886 :> /127.0.0.1:43497] INACTIVE
05:24:10.395 [nioEventLoopGroup-628-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x70edc8b7, /127.0.0.1:39886 :> /127.0.0.1:43497] UNREGISTERED
05:24:10.395 [nioEventLoopGroup-628-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-15
05:24:10.493 [nioEventLoopGroup-612-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-15
05:24:10.493 [nioEventLoopGroup-612-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-14
05:24:10.896 [nioEventLoopGroup-628-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-14
05:24:11.972 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
05:24:11.974 [nioEventLoopGroup-644-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5be1cf09, /127.0.0.1:56480 => /127.0.0.1:34353] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:34353
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
05:24:11.974 [nioEventLoopGroup-644-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5be1cf09, /127.0.0.1:56480 => /127.0.0.1:34353] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:11.974 [nioEventLoopGroup-644-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5be1cf09, /127.0.0.1:56480 => /127.0.0.1:34353] FLUSH
05:24:11.974 [nioEventLoopGroup-644-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5be1cf09, /127.0.0.1:56480 => /127.0.0.1:34353] CLOSE()
05:24:11.974 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:11.974 [nioEventLoopGroup-658-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-658-1
05:24:11.976 [nioEventLoopGroup-644-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-2
05:24:11.976 [nioEventLoopGroup-644-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-3
05:24:11.976 [nioEventLoopGroup-644-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-1
05:24:11.976 [nioEventLoopGroup-644-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-5
05:24:11.976 [nioEventLoopGroup-644-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-4
05:24:11.976 [nioEventLoopGroup-644-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-6
05:24:11.976 [nioEventLoopGroup-644-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-7
05:24:11.976 [nioEventLoopGroup-644-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-8
05:24:11.976 [nioEventLoopGroup-644-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-9
05:24:11.977 [nioEventLoopGroup-644-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-10
05:24:11.977 [nioEventLoopGroup-644-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-11
05:24:11.977 [nioEventLoopGroup-644-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-12
05:24:11.977 [nioEventLoopGroup-644-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-13
05:24:12.329 [MockServer thread for port: 44189] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 44189
05:24:12.330 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:12.332 [nioEventLoopGroup-660-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x96a9532e, /127.0.0.1:35994 => /127.0.0.1:44189] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44189
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:12.332 [nioEventLoopGroup-660-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:12.332 [nioEventLoopGroup-660-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x96a9532e, /127.0.0.1:35994 => /127.0.0.1:44189] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:12.332 [nioEventLoopGroup-660-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x96a9532e, /127.0.0.1:35994 => /127.0.0.1:44189] FLUSH
05:24:12.332 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:12.332 [nioEventLoopGroup-660-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x96a9532e, /127.0.0.1:35994 => /127.0.0.1:44189] FLUSH
05:24:12.332 [nioEventLoopGroup-661-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-661-1
05:24:12.332 [nioEventLoopGroup-660-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x96a9532e, /127.0.0.1:35994 :> /127.0.0.1:44189] INACTIVE
05:24:12.332 [nioEventLoopGroup-660-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x96a9532e, /127.0.0.1:35994 :> /127.0.0.1:44189] UNREGISTERED
05:24:12.333 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:12.334 [nioEventLoopGroup-660-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeff19e72, /127.0.0.1:35996 => /127.0.0.1:44189] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44189
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:12.335 [nioEventLoopGroup-660-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
05:24:12.335 [nioEventLoopGroup-660-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeff19e72, /127.0.0.1:35996 => /127.0.0.1:44189] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:12.335 [nioEventLoopGroup-660-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeff19e72, /127.0.0.1:35996 => /127.0.0.1:44189] FLUSH
05:24:12.335 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:12.335 [nioEventLoopGroup-660-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeff19e72, /127.0.0.1:35996 => /127.0.0.1:44189] FLUSH
05:24:12.335 [nioEventLoopGroup-660-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeff19e72, /127.0.0.1:35996 :> /127.0.0.1:44189] INACTIVE
05:24:12.335 [nioEventLoopGroup-662-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-662-1
05:24:12.335 [nioEventLoopGroup-660-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeff19e72, /127.0.0.1:35996 :> /127.0.0.1:44189] UNREGISTERED
05:24:12.335 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:12.336 [nioEventLoopGroup-660-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa27e3685, /127.0.0.1:35998 => /127.0.0.1:44189] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44189
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:12.337 [nioEventLoopGroup-660-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
05:24:12.337 [nioEventLoopGroup-660-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa27e3685, /127.0.0.1:35998 => /127.0.0.1:44189] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:12.337 [nioEventLoopGroup-660-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa27e3685, /127.0.0.1:35998 => /127.0.0.1:44189] FLUSH
05:24:12.337 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:12.337 [nioEventLoopGroup-660-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa27e3685, /127.0.0.1:35998 => /127.0.0.1:44189] FLUSH
05:24:12.337 [nioEventLoopGroup-660-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa27e3685, /127.0.0.1:35998 :> /127.0.0.1:44189] INACTIVE
05:24:12.337 [nioEventLoopGroup-660-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa27e3685, /127.0.0.1:35998 :> /127.0.0.1:44189] UNREGISTERED
05:24:12.337 [nioEventLoopGroup-663-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-663-1
05:24:12.338 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:12.339 [nioEventLoopGroup-660-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3b4f1f58, /127.0.0.1:36000 => /127.0.0.1:44189] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44189
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:12.340 [nioEventLoopGroup-660-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:12.340 [nioEventLoopGroup-660-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3b4f1f58, /127.0.0.1:36000 => /127.0.0.1:44189] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:12.340 [nioEventLoopGroup-660-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3b4f1f58, /127.0.0.1:36000 => /127.0.0.1:44189] FLUSH
05:24:12.340 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:12.340 [nioEventLoopGroup-660-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3b4f1f58, /127.0.0.1:36000 => /127.0.0.1:44189] FLUSH
05:24:12.340 [nioEventLoopGroup-664-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-664-1
05:24:12.340 [nioEventLoopGroup-660-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3b4f1f58, /127.0.0.1:36000 :> /127.0.0.1:44189] INACTIVE
05:24:12.340 [nioEventLoopGroup-660-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3b4f1f58, /127.0.0.1:36000 :> /127.0.0.1:44189] UNREGISTERED
05:24:12.341 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:12.342 [nioEventLoopGroup-660-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa0f346c7, /127.0.0.1:36002 => /127.0.0.1:44189] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44189
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
05:24:12.342 [nioEventLoopGroup-660-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
05:24:12.342 [nioEventLoopGroup-660-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa0f346c7, /127.0.0.1:36002 => /127.0.0.1:44189] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:12.342 [nioEventLoopGroup-660-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa0f346c7, /127.0.0.1:36002 => /127.0.0.1:44189] FLUSH
05:24:12.342 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:12.342 [nioEventLoopGroup-660-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa0f346c7, /127.0.0.1:36002 => /127.0.0.1:44189] FLUSH
05:24:12.342 [nioEventLoopGroup-660-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa0f346c7, /127.0.0.1:36002 :> /127.0.0.1:44189] INACTIVE
05:24:12.342 [nioEventLoopGroup-665-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-665-1
05:24:12.342 [nioEventLoopGroup-660-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa0f346c7, /127.0.0.1:36002 :> /127.0.0.1:44189] UNREGISTERED
05:24:12.343 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:12.344 [nioEventLoopGroup-660-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x178451aa, /127.0.0.1:36004 => /127.0.0.1:44189] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44189
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
05:24:12.344 [nioEventLoopGroup-660-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
05:24:12.344 [nioEventLoopGroup-660-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x178451aa, /127.0.0.1:36004 => /127.0.0.1:44189] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:12.344 [nioEventLoopGroup-660-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x178451aa, /127.0.0.1:36004 => /127.0.0.1:44189] FLUSH
05:24:12.344 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:12.344 [nioEventLoopGroup-660-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x178451aa, /127.0.0.1:36004 => /127.0.0.1:44189] FLUSH
05:24:12.345 [nioEventLoopGroup-660-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x178451aa, /127.0.0.1:36004 :> /127.0.0.1:44189] INACTIVE
05:24:12.345 [nioEventLoopGroup-666-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-666-1
05:24:12.345 [nioEventLoopGroup-660-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x178451aa, /127.0.0.1:36004 :> /127.0.0.1:44189] UNREGISTERED
05:24:12.345 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:12.346 [nioEventLoopGroup-660-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc9cc29d3, /127.0.0.1:36006 => /127.0.0.1:44189] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44189
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
05:24:12.346 [nioEventLoopGroup-660-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
05:24:12.346 [nioEventLoopGroup-660-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc9cc29d3, /127.0.0.1:36006 => /127.0.0.1:44189] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:12.346 [nioEventLoopGroup-660-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc9cc29d3, /127.0.0.1:36006 => /127.0.0.1:44189] FLUSH
05:24:12.347 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:12.347 [nioEventLoopGroup-660-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc9cc29d3, /127.0.0.1:36006 => /127.0.0.1:44189] FLUSH
05:24:12.347 [nioEventLoopGroup-660-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc9cc29d3, /127.0.0.1:36006 :> /127.0.0.1:44189] INACTIVE
05:24:12.347 [nioEventLoopGroup-667-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-667-1
05:24:12.347 [nioEventLoopGroup-660-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc9cc29d3, /127.0.0.1:36006 :> /127.0.0.1:44189] UNREGISTERED
05:24:12.347 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:12.348 [nioEventLoopGroup-660-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x03746c39, /127.0.0.1:36008 => /127.0.0.1:44189] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44189
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:12.348 [nioEventLoopGroup-660-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
05:24:12.348 [nioEventLoopGroup-660-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x03746c39, /127.0.0.1:36008 => /127.0.0.1:44189] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:12.349 [nioEventLoopGroup-660-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x03746c39, /127.0.0.1:36008 => /127.0.0.1:44189] FLUSH
05:24:12.349 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:12.349 [nioEventLoopGroup-660-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x03746c39, /127.0.0.1:36008 => /127.0.0.1:44189] FLUSH
05:24:12.349 [nioEventLoopGroup-668-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-668-1
05:24:12.349 [nioEventLoopGroup-660-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x03746c39, /127.0.0.1:36008 :> /127.0.0.1:44189] INACTIVE
05:24:12.349 [nioEventLoopGroup-660-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x03746c39, /127.0.0.1:36008 :> /127.0.0.1:44189] UNREGISTERED
05:24:12.349 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:12.350 [nioEventLoopGroup-660-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xab640ea6, /127.0.0.1:36010 => /127.0.0.1:44189] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44189
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:12.350 [nioEventLoopGroup-660-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
05:24:12.350 [nioEventLoopGroup-660-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xab640ea6, /127.0.0.1:36010 => /127.0.0.1:44189] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:12.351 [nioEventLoopGroup-660-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xab640ea6, /127.0.0.1:36010 => /127.0.0.1:44189] FLUSH
05:24:12.351 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:12.351 [nioEventLoopGroup-660-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xab640ea6, /127.0.0.1:36010 => /127.0.0.1:44189] FLUSH
05:24:12.351 [nioEventLoopGroup-660-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xab640ea6, /127.0.0.1:36010 :> /127.0.0.1:44189] INACTIVE
05:24:12.351 [nioEventLoopGroup-669-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-669-1
05:24:12.351 [nioEventLoopGroup-660-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xab640ea6, /127.0.0.1:36010 :> /127.0.0.1:44189] UNREGISTERED
05:24:12.351 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:12.352 [nioEventLoopGroup-660-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x069d2693, /127.0.0.1:36012 => /127.0.0.1:44189] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44189
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:12.352 [nioEventLoopGroup-660-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
05:24:12.353 [nioEventLoopGroup-660-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x069d2693, /127.0.0.1:36012 => /127.0.0.1:44189] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:12.353 [nioEventLoopGroup-660-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x069d2693, /127.0.0.1:36012 => /127.0.0.1:44189] FLUSH
05:24:12.353 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:12.353 [nioEventLoopGroup-660-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x069d2693, /127.0.0.1:36012 => /127.0.0.1:44189] FLUSH
05:24:12.353 [nioEventLoopGroup-660-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x069d2693, /127.0.0.1:36012 :> /127.0.0.1:44189] INACTIVE
05:24:12.353 [nioEventLoopGroup-670-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-670-1
05:24:12.353 [nioEventLoopGroup-660-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x069d2693, /127.0.0.1:36012 :> /127.0.0.1:44189] UNREGISTERED
05:24:12.353 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:12.354 [nioEventLoopGroup-660-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f543723, /127.0.0.1:36014 => /127.0.0.1:44189] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44189
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:12.354 [nioEventLoopGroup-660-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
05:24:12.355 [nioEventLoopGroup-660-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f543723, /127.0.0.1:36014 => /127.0.0.1:44189] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:12.355 [nioEventLoopGroup-660-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f543723, /127.0.0.1:36014 => /127.0.0.1:44189] FLUSH
05:24:12.355 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:12.355 [nioEventLoopGroup-660-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f543723, /127.0.0.1:36014 => /127.0.0.1:44189] FLUSH
05:24:12.355 [nioEventLoopGroup-660-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f543723, /127.0.0.1:36014 :> /127.0.0.1:44189] INACTIVE
05:24:12.355 [nioEventLoopGroup-660-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f543723, /127.0.0.1:36014 :> /127.0.0.1:44189] UNREGISTERED
05:24:12.355 [nioEventLoopGroup-671-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-671-1
05:24:12.355 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:12.356 [nioEventLoopGroup-660-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0446e260, /127.0.0.1:36016 => /127.0.0.1:44189] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44189
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:12.357 [nioEventLoopGroup-660-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
05:24:12.357 [nioEventLoopGroup-660-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0446e260, /127.0.0.1:36016 => /127.0.0.1:44189] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:12.357 [nioEventLoopGroup-660-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0446e260, /127.0.0.1:36016 => /127.0.0.1:44189] FLUSH
05:24:12.357 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:12.357 [nioEventLoopGroup-660-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0446e260, /127.0.0.1:36016 => /127.0.0.1:44189] FLUSH
05:24:12.357 [nioEventLoopGroup-660-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0446e260, /127.0.0.1:36016 :> /127.0.0.1:44189] INACTIVE
05:24:12.357 [nioEventLoopGroup-660-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0446e260, /127.0.0.1:36016 :> /127.0.0.1:44189] UNREGISTERED
05:24:12.357 [nioEventLoopGroup-672-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-672-1
05:24:12.357 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
05:24:12.358 [nioEventLoopGroup-660-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2052da16, /127.0.0.1:36018 => /127.0.0.1:44189] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44189
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
05:24:12.359 [nioEventLoopGroup-660-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
05:24:12.359 [nioEventLoopGroup-660-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2052da16, /127.0.0.1:36018 => /127.0.0.1:44189] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:12.359 [nioEventLoopGroup-660-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2052da16, /127.0.0.1:36018 => /127.0.0.1:44189] FLUSH
05:24:12.359 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:12.359 [nioEventLoopGroup-660-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2052da16, /127.0.0.1:36018 => /127.0.0.1:44189] FLUSH
05:24:12.359 [nioEventLoopGroup-660-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2052da16, /127.0.0.1:36018 :> /127.0.0.1:44189] INACTIVE
05:24:12.359 [nioEventLoopGroup-660-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2052da16, /127.0.0.1:36018 :> /127.0.0.1:44189] UNREGISTERED
05:24:12.359 [nioEventLoopGroup-673-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-673-1
05:24:12.477 [nioEventLoopGroup-644-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5be1cf09, /127.0.0.1:56480 :> /127.0.0.1:34353] FLUSH
05:24:12.477 [nioEventLoopGroup-644-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5be1cf09, /127.0.0.1:56480 :> /127.0.0.1:34353] INACTIVE
05:24:12.477 [nioEventLoopGroup-644-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5be1cf09, /127.0.0.1:56480 :> /127.0.0.1:34353] UNREGISTERED
05:24:12.477 [nioEventLoopGroup-644-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-14
05:24:12.933 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
05:24:12.934 [nioEventLoopGroup-660-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba43870e, /127.0.0.1:36024 => /127.0.0.1:44189] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:44189
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
05:24:12.935 [nioEventLoopGroup-660-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba43870e, /127.0.0.1:36024 => /127.0.0.1:44189] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
05:24:12.935 [nioEventLoopGroup-660-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba43870e, /127.0.0.1:36024 => /127.0.0.1:44189] FLUSH
05:24:12.935 [nioEventLoopGroup-660-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba43870e, /127.0.0.1:36024 => /127.0.0.1:44189] CLOSE()
05:24:12.935 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
05:24:12.935 [nioEventLoopGroup-674-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-674-1
05:24:12.936 [nioEventLoopGroup-660-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-660-1
05:24:12.936 [nioEventLoopGroup-660-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-660-3
05:24:12.936 [nioEventLoopGroup-660-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-660-2
05:24:12.936 [nioEventLoopGroup-660-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-660-5
05:24:12.936 [nioEventLoopGroup-660-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-660-4
05:24:12.936 [nioEventLoopGroup-660-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-660-7
05:24:12.936 [nioEventLoopGroup-660-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-660-13
05:24:12.936 [nioEventLoopGroup-660-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-660-11
05:24:12.936 [nioEventLoopGroup-660-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-660-6
05:24:12.936 [nioEventLoopGroup-660-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-660-9
05:24:12.936 [nioEventLoopGroup-660-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-660-8
05:24:12.936 [nioEventLoopGroup-660-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-660-12
05:24:12.936 [nioEventLoopGroup-660-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-660-10